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


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1548
RA = 40.5951, Dec = 11.0477
tmin = 640569601, tmax = 640828801
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='672772', job_status='RUN', time_executed='2021-08-16 13:05:46.776566', time_epoch_executed='1629144346.78' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672772/ft1_4FGL_J0242.3+1102_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672772/ft2_4FGL_J0242.3+1102_daily_bin1548.fits


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

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

Done.
real 9.49
user 2.77
sys 4.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672772/ft1_filtered_4FGL_J0242.3+1102_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/672772/ft2_4FGL_J0242.3+1102_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/672772/ltcube_640569601_640828801_4FGL_J0242.3+1102_daily_bin1548.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/672772/ft2_4FGL_J0242.3+1102_daily_bin1548.fits
.....................!
real 20.03
user 13.15
sys 4.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672772/ft1_filtered_4FGL_J0242.3+1102_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/672772/ft2_4FGL_J0242.3+1102_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/672772/ltcube_640569601_640828801_4FGL_J0242.3+1102_daily_bin1548.fits outfile=/scratch/kocevski/672772/expmap_640569601_640828801_4FGL_J0242.3+1102_daily_bin1548.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/672772/ltcube_640569601_640828801_4FGL_J0242.3+1102_daily_bin1548.fits
.....................!
real 203.60
user 185.19
sys 10.85

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/672772/ft1_filtered_4FGL_J0242.3+1102_daily_bin1548.fits scfile=/scratch/kocevski/672772/ft2_4FGL_J0242.3+1102_daily_bin1548.fits outfile=/scratch/kocevski/672772/cmap_640569601_640828801_4FGL_J0242.3+1102_daily_bin1548.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.77
user 0.37
sys 4.06

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

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

This is gtbin version HEAD
real 4.63
user 0.38
sys 4.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    46.984       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.170       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12466E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.081       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14990E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12826E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.944       1.0000         .10000E-03   10000.    
    17 'norm      '    .10896E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21389E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.7372       1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.606       1.0000         .10000E-03   10000.    
    26 'norm      '    29.676       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2401       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .58573       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=   846.6475     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4314 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.432       -.62317E-06** at limit **
   2  Prefactor     .10000E-03    24.884       -.20884E-06** at limit **
   3  norm          46.992        46.185        .16106E-05   -.47899E-05
   4  Prefactor     10.167        15.870        .61458E-06    .82823E-06
   5  norm          1.9698        3.1225        .24930E-05   -.68151E-04
   6  Prefactor     .10000E-03    93.198       -.82415E-06** at limit **
   7  Prefactor    10000.0        8607.3        .16604E-04** at limit **
   8  Prefactor     .10000E-03    59.535       -.69564E-07** at limit **
   9  Prefactor     .10000E-03    633.23       -.17383E-05** at limit **
  10  Prefactor     .10000E-03    189.84       -.14490E-05** at limit **
  11  Prefactor     39.628        242.62        .14132E-05   -.15391E-04
  12  Prefactor     .10014E-03    241.91       -.43617E-04** at limit **
  13  Prefactor     .10000E-03    300.02        .69692E-06** at limit **
  14  norm          .10000E-03    18.357       -.10235E-06** at limit **
  15  Prefactor     .10000E-03    466.24        .68274E-06** at limit **
  16  Prefactor     24.250        216.72        .13630E-04   -.34334E-04
  17  norm          .10000E-03    93.954       -.71201E-06** at limit **
  18  Prefactor     .10000E-03    549.36       -.22074E-06** at limit **
  19  Prefactor     .10000E-03    325.99        .94307E-06** at limit **
  20  Prefactor     .10000E-03    299.13        .68856E-06** at limit **
  21  Prefactor     .10000E-03    18.570        .35204E-05** at limit **
  22  norm          .10000E-03    105.07       -.37348E-06** at limit **
  23  norm          .10000E-03    35.404        .15562E-06** at limit **
  24  norm          3.7608        34.995        .13869E-05    .31869E-04
  25  Prefactor     28.606        18.892        .47119E-06   -.32608E-04
  26  norm          29.686        39.476       -.10219E-05    .13370E-04
  27  Prefactor     .10002E-03    827.96       -.31585E-05** at limit **
  28  Prefactor     .10000E-03    28.503        .25406E-06** at limit **
  29  Prefactor     .10000E-03    11.524       -.76286E-07** at limit **
  30  Prefactor     .10000E-03    57.617       -.15680E-06** at limit **
  31  Normalizat    1.2395        .79896       -.46728E-04    .44416E-04
  32  Prefactor     .58588        .26747        .19886E-04   -.38894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 46.992
  Prefactor  = 10.1673
  norm       = 1.96984
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 39.6282
  Prefactor  = 0.000100138
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.2501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.76081
  Prefactor  = 28.6062
  norm       = 29.686
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2395
  Prefactor  = 0.585878
 **********
 **   18 **HESSE 
 **********

 FCN=   846.6475     FROM HESSE     STATUS=OK           637 CALLS     4951 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.925        .14182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          46.992        46.197        .58497E-04   -1.4336    
   4  Prefactor     10.167        15.863        .12565E-03   -1.5070    
   5  norm          1.9698        3.1160        .53507E-04   -1.5427    
   6  Prefactor     .10000E-03    93.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        8608.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    633.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    189.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.628        245.57        .31657E-03   -1.4448    
  12  Prefactor     .10014E-03    258.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    300.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    18.363        .12182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    466.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.250        218.14        .81860E-04   -1.4723    
  17  norm          .10000E-03    93.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    549.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    326.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    299.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.719        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    105.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    35.408        .16914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.7608        34.674        .20887E-03   -1.5320    
  25  Prefactor     28.606        18.884        .74906E-04   -1.4638    
  26  norm          29.686        39.507        .73547E-04   -1.4618    
  27  Prefactor     .10002E-03    828.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.509        .15182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    11.532        .96486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    57.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2395        .80966        .34451E-03   -.85391    
  32  Prefactor     .58588        .27093        .19641E-03   -1.0818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17662e-09
Minuit parameter uncertainties:
  1  0.000122181
  2  9.63166e-06
  3  46.2317
  4  15.8693
  5  3.11627
  6  0.000104177
  7  0.173597
  8  2.37817e-05
  9  0.00308717
  10  0.00180087
  11  198.515
  12  0.0119992
  13  0.00137376
  14  2.66625e-06
  15  0.00154856
  16  146.178
  17  6.31923e-05
  18  0.000131129
  19  0.00182083
  20  0.00134677
  21  0.000296885
  22  0.000362859
  23  4.87154e-05
  24  22.8561
  25  18.8878
  26  39.5417
  27  0.00915233
  28  7.59886e-05
  29  9.32791e-06
  30  0.000111433
  31  0.818107
  32  0.271538
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  6.319e-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:  5.859e-01  2.715e-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.239e+00  8.181e-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: 1.40e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672772/likelihoodResults_640569601_640828801_4FGL_J0242.3+1102_daily_bin1548.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 846.647553324
delta logL = -5.03737772988e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 846.647504057
delta logL = -1.10692928956e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11226E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0929       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58581       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=   846.6475     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    35.503        .90712E-02** at limit **
   2  alpha         4.0700        3.6802        .50000        .16150E-05
   3  Normalizat    1.2395        .54702        .77852E-01    .65308E-05
   4  Prefactor     .58588        .22489        .40860E-01    .10872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.06996
  Normalizat = 1.23949
  Prefactor  = 0.585881
 **********
 **   18 **HESSE 
 **********

 FCN=   846.6475     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.485        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.0700        3.6794        .50000        .67896    
   3  Normalizat    1.2395        .58403        .34458E-03   -.85391    
   4  Prefactor     .58588        .24050        .19639E-03   -1.0818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08588e-12
Minuit parameter uncertainties:
  1  6.38836e-06
  2  1.94561
  3  0.587152
  4  0.240923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672772': 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) = 846.647503807
delta logL = -8.57000600263e-07

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  6.388e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  4.070e+00  1.946e+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:  5.859e-01  2.409e-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.239e+00  5.872e-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/672772/cmap_HighResolution_640569601_640828801_4FGL_J0242.3+1102_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-04', job_status='DONE', photon_flux_upper_limit='1.40e-06', time_completed='2021-08-16 13:13:44.132494', job_id='672772', GAL2='0.59', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1629144824.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='-8.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1548' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 13:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 672772: <4FGL_J0242.3+1102_daily_bin1548> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1548> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 13:00:43 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 13:01:20 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:01:20 2021
Terminated at Mon Aug 16 13:13:45 2021
Results reported at Mon Aug 16 13:13:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1548 40.5951 11.0477 640569601 640828801 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 :                                   507.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             190.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            782 sec.

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

