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


Performing analysis on: 4FGL_J0238.2+1531_monthly_bin118
RA = 39.5617, Dec = 15.5175
tmin = 542851201, tmax = 545443201
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='23696', job_status='RUN', time_executed='2021-10-10 17:41:18.474329', time_epoch_executed='1633912878.47' WHERE source_name='4FGL J0238.2+1531' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23696

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23696/ft1_4FGL_J0238.2+1531_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23696/ft1_4FGL_J0238.2+1531_monthly_bin118.fits outfile=/scratch/kocevski/23696/ft1_filteredMKT_4FGL_J0238.2+1531_monthly_bin118.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.36
user 17.85
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.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/23696/ft1_filteredMKT_4FGL_J0238.2+1531_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.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 0.59
user 0.42
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/23696/ltcube_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.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/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits
.....................!
real 41.60
user 41.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/23696/ltcube_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.fits outfile=/scratch/kocevski/23696/expmap_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.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/23696/ltcube_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.fits
.....................!
real 191.79
user 185.84
sys 5.45

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J0238.2+1531 @ 39.5617 15.5175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits scfile=/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits outfile=/scratch/kocevski/23696/cmap_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.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=39.5617 yref=15.5175 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 0.61
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits scfile=/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits outfile=/scratch/kocevski/23696/cmap_HighResolution_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.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=39.5617 yref=15.5175 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 0.63
user 0.46
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/23696/Model_4FGL_J0238.2+1531_monthly_bin118.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/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits.......................!
real 29.37
user 27.37
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits', '/scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits', expMap='/scratch/kocevski/23696/expmap_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.fits', expCube='/scratch/kocevski/23696/ltcube_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/23696/Model_4FGL_J0238.2+1531_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.2+1531'

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.956e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/23696/ft1_filtered_4FGL_J0238.2+1531_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/23696/ft2_4FGL_J0238.2+1531_monthly_bin118.fits
Exposure map: /scratch/kocevski/23696/expmap_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.fits
Exposure cube: /scratch/kocevski/23696/ltcube_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/23696/Model_4FGL_J0238.2+1531_monthly_bin118.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) = 1213.48993258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    383.75       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8120       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    102.00       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.228       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.244       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    324.49       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    83.503       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .17518E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .32786       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .99187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1213.488     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     5578 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.095        14.078       -.24004E-06    .93507E-04
   2  Prefactor     383.17        768.84        .68272E-05   -.12639E-04
   3  Prefactor     4.8099        7.4315        .22454E-05   -.99992E-04
   4  norm          .10000E-03    4.1440       -.45700E-07** at limit **
   5  Prefactor     .10000E-03    44.695       -.49873E-06** at limit **
   6  Prefactor     .10000E-03    7.3246       -.28450E-05** at limit **
   7  norm          101.74        348.71        .18817E-05   -.15415E-04
   8  Prefactor     .10000E-03    71.173       -.29370E-05** at limit **
   9  Prefactor     .10000E-03    25.089        .23316E-07** at limit **
  10  Prefactor     .10000E-03    7.4036       -.89625E-07** at limit **
  11  Prefactor     22.835        329.37        .87097E-05   -.26180E-04
  12  Prefactor     .10000E-03    66.981       -.65972E-07** at limit **
  13  Prefactor     .10000E-03    7.2738       -.11106E-06** at limit **
  14  Prefactor     10.183        76.336        .87758E-05    .34087E-04
  15  Prefactor     .10000E-03    13.336       -.13146E-05** at limit **
  16  Prefactor     28.221        24.524        .13280E-05    .55133E-04
  17  norm          .10000E-03    .76653        .12196E-06** at limit **
  18  Prefactor     .10000E-03    50.794       -.22657E-07** at limit **
  19  Prefactor     .10000E-03    19.134        .12572E-06** at limit **
  20  norm          .10000E-03    15.793        .18771E-06** at limit **
  21  Prefactor     .10000E-03    14.690        .16910E-06** at limit **
  22  Prefactor     .10000E-03    80.501        .15267E-05** at limit **
  23  Prefactor     20.221        32.218        .53280E-05    .91971E-04
  24  Prefactor     .10000E-03    31.202        .39084E-06** at limit **
  25  norm          .10000E-03    11.926        .47361E-07** at limit **
  26  norm          .10000E-03    12.935        .38333E-07** at limit **
  27  norm          .10000E-03    6.1911        .41477E-06** at limit **
  28  norm          .10000E-03    9.5134        .36663E-06** at limit **
  29  Prefactor     324.06        872.04        .13555E-04    .28060E-05
  30  Prefactor     .10000E-03    5.9241        .11993E-06** at limit **
  31  Prefactor     83.486        45.725        .11390E-05    .89659E-04
  32  Prefactor     .10000E-03    164.59       -.13822E-05** at limit **
  33  Normalizat    .32834        .56105       -.65087E-04   -.24307E-06
  34  Prefactor     .99170        .23372        .13398E-04    .43643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.095
  Prefactor  = 383.166
  Prefactor  = 4.80989
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 101.737
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1826
  Prefactor  = 0.0001
  Prefactor  = 28.2214
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2214
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 324.061
  Prefactor  = 0.0001
  Prefactor  = 83.4862
  Prefactor  = 0.0001
  Normalizat = 0.328344
  Prefactor  = 0.991701
 **********
 **   18 **HESSE 
 **********

 FCN=   1213.488     FROM HESSE     STATUS=OK           710 CALLS     6288 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.095        14.073        .53342E-03   -1.4957    
   2  Prefactor     383.17        767.26        .10411E-03   -1.1768    
   3  Prefactor     4.8099        7.4398        .56792E-03   -1.5269    
   4  norm          .10000E-03    4.1441        .69269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4220        .18217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          101.74        348.70        .19905E-03   -1.3687    
   8  Prefactor     .10000E-03    71.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.089        .17050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4062        .92589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.835        328.42        .41666E-03   -1.4752    
  12  Prefactor     .10000E-03    66.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2755        .91770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.183        76.489        .12551E-03   -1.5070    
  15  Prefactor     .10000E-03    13.322        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.221        24.485        .75405E-04   -1.4645    
  17  norm          .10000E-03    .79483        .59377E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.135        .14888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    15.805        .13525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.691        .13044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    80.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.221        32.362        .89020E-04   -1.4808    
  24  Prefactor     .10000E-03    31.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.926        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.936        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.2016        .84652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    9.5218        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     324.06        873.38        .11287E-03   -1.2088    
  30  Prefactor     .10000E-03    5.9265        .82822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     83.486        45.795        .43958E-04   -1.3878    
  32  Prefactor     .10000E-03    165.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .32834        .56182        .55593E-03   -1.2118    
  34  Prefactor     .99170        .23570        .14386E-03   -.93007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81893e-10
Minuit parameter uncertainties:
  1  14.0762
  2  789.313
  3  7.44121
  4  7.57137e-06
  5  0.00074009
  6  0.00023163
  7  356.133
  8  0.000799103
  9  4.89776e-05
  10  1.78901e-05
  11  174.367
  12  4.49651e-05
  13  1.44462e-05
  14  55.9156
  15  7.66923e-05
  16  24.4932
  17  5.26072e-06
  18  9.12388e-05
  19  1.03564e-05
  20  6.09143e-05
  21  6.56613e-06
  22  0.000323007
  23  32.3898
  24  9.50322e-05
  25  2.17529e-05
  26  2.79908e-05
  27  1.5044e-05
  28  2.18831e-05
  29  913.341
  30  7.54242e-06
  31  45.8143
  32  0.000128745
  33  0.571893
  34  0.23594
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  2.822e+01  2.449e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  9.917e-01  2.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  3.283e-01  5.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 39.562 15.518
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 4.18e-05 +/- 3.63e-05

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) = 1212.93893454
delta logL = 0.548829419993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1212.73344866
delta logL = 0.754315300236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.008       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5985       1.0000          .0000       10.000    
     3 'Normalizat'    .37189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1212.733     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.115        54.222        .34873E-06    .10835E-05
   2  Index         1.5980        .62512        .19538E-05   -.67857E-06
   3  Normalizat    .37250        .52865        .22080E-04   -.29913E-05
   4  Prefactor     .98515        .23623       -.31578E-05   -.25070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.1149
  Index      = 1.59796
  Normalizat = 0.372497
  Prefactor  = 0.985151
 **********
 **   18 **HESSE 
 **********

 FCN=   1212.733     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.115        54.165        .26566E-03   -1.4195    
   2  Index         1.5980        .62431        .53242E-02   -.74832    
   3  Normalizat    .37250        .52806        .52360E-03   -1.1875    
   4  Prefactor     .98515        .23538        .14430E-03   -.93226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71652e-12
Minuit parameter uncertainties:
  1  54.2117
  2  0.627369
  3  0.535359
  4  0.235627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23696': 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) = 1212.73344526
delta logL = 0.754318700632

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  5.711e+01  5.421e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  1.598e+00  6.274e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  9.852e-01  2.356e-01  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  3.725e-01  5.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.32
Ra Dec: 39.562 15.518
Photon Index (Free Index): 1.60 +/- 0.63
Photon Flux (Free Index): 6.87e-08 +/- 8.33e-08
Energy Flux (Free Index): 1.57e-04 +/- 2.55e-04

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/23696/cmap_HighResolution_542851201_545443201_4FGL_J0238.2+1531_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='1.57e-04', photon_flux_error='1.12e-07', dlogl='7.54e-01', energy_flux='4.18e-05', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-10-10 17:51:12.010196', photon_index_error2='0.63', photon_index2='1.60', ts='4.82', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.55e-04', EG='0.33', time_epoch_completed='1633913472.01', return_code='0', job_id='23696', GAL2='0.99', EG2='0.37', return_code2='0', energy_flux_error='3.63e-05', photon_flux_error2='8.33e-08', ts2='6.32', photon_index='2.41' WHERE bin_id='118' AND source_name='4FGL J0238.2+1531' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 10 17:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 23696: <4FGL_J0238.2+1531_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0238.2+1531_monthly_bin118> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Oct 10 17:40:18 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 10 17:40:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 10 17:40:20 2021
Terminated at Sun Oct 10 17:51:12 2021
Results reported at Sun Oct 10 17:51:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_monthly_bin118 39.5617 15.5175 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.2+1531 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   560.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             267.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

