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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin756
RA = 39.9403, Dec = 4.2643
tmin = 435283201, tmax = 435542401
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='636853', job_status='RUN', time_executed='2021-08-16 11:09:09.799562', time_epoch_executed='1629137349.8' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636853/ft1_4FGL_J0239.7+0415_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636853/ft1_4FGL_J0239.7+0415_daily_bin756.fits outfile=/scratch/kocevski/636853/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin756.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=435283201.0 tmax=435542401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.01
user 4.88
sys 1.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.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/636853/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.46
user 0.33
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/636853/ltcube_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.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/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits
.....................!
real 14.60
user 12.98
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/636853/ltcube_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.fits outfile=/scratch/kocevski/636853/expmap_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.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/636853/ltcube_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.fits
.....................!
real 194.37
user 184.53
sys 5.44

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

Setting source of interest to:
4FGL J0239.7+0415 @ 39.9403 4.2643

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits scfile=/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits outfile=/scratch/kocevski/636853/cmap_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.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.9403 yref=4.2643 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.62
user 0.36
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits scfile=/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits outfile=/scratch/kocevski/636853/cmap_HighResolution_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.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.9403 yref=4.2643 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 2.24
user 0.40
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636853/Model_4FGL_J0239.7+0415_daily_bin756.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/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits......................!
real 61.75
user 57.27
sys 2.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits', '/scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits', expMap='/scratch/kocevski/636853/expmap_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.fits', expCube='/scratch/kocevski/636853/ltcube_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636853/Model_4FGL_J0239.7+0415_daily_bin756.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.7+0415'

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  7.975e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/636853/ft1_filtered_4FGL_J0239.7+0415_daily_bin756.fits
Spacecraft file(s): /scratch/kocevski/636853/ft2_4FGL_J0239.7+0415_daily_bin756.fits
Exposure map: /scratch/kocevski/636853/expmap_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.fits
Exposure cube: /scratch/kocevski/636853/ltcube_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636853/Model_4FGL_J0239.7+0415_daily_bin756.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) = 4034.5081752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3950       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.542       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5182       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.937       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.766       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9865       1.0000         .10000E-03   10000.    
    21 'norm      '    .48135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.791       1.0000         .10000E-03   10000.    
    23 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21042E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2596       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4034.502     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3496 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2508        .17493E-07** at limit **
   2  norm          10.872        6.6023        .36796E-08   -.38959E-05
   3  Prefactor     .10000E-03    .81511       -.16369E-07** at limit **
   4  norm          .10000E-03    .43704       -.69784E-08** at limit **
   5  Prefactor     .10000E-03    9.0423       -.16822E-06** at limit **
   6  Prefactor     9.3984        8.9433        .20825E-06   -.73228E-05
   7  Prefactor     31.211        77.988        .97273E-06   -.92721E-06
   8  Prefactor     4.5173        14.078        .24069E-06    .60868E-06
   9  Prefactor     .10000E-03    9.9305       -.10451E-07** at limit **
  10  Prefactor     .10000E-03    5.7453       -.24958E-07** at limit **
  11  Prefactor     .10000E-03    5.0789       -.30498E-07** at limit **
  12  Prefactor     19.939        17.328       -.21153E-06   -.35254E-04
  13  Prefactor     .10000E-03    26.488        .15398E-05** at limit **
  14  Prefactor     31.768        22.817        .60311E-06   -.81928E-05
  15  norm          6.9994        9.5781       -.16332E-07   -.21070E-04
  16  Prefactor     .10000E-03    3.7822       -.12653E-07** at limit **
  17  Prefactor     .10000E-03    19.960        .24167E-05** at limit **
  18  Prefactor     .10000E-03    22.669       -.34426E-05** at limit **
  19  Prefactor     .10000E-03    8.7324        .10801E-06** at limit **
  20  norm          2.9889        8.9330        .28524E-05    .31423E-05
  21  norm          .49040        4.0515        .34356E-06   -.15073E-03
  22  Prefactor     10.779        9.3101        .15828E-06   -.77014E-05
  23  norm          .10000E-03    12.522        .42981E-06** at limit **
  24  Prefactor     .10000E-03    14.208       -.75496E-06** at limit **
  25  Prefactor     .10000E-03    66.016       -.18502E-06** at limit **
  26  Prefactor     .10000E-03    1.9978       -.20900E-07** at limit **
  27  Normalizat    1.2597        .23150       -.43067E-07   -.32010E-04
  28  Prefactor     .78206        .12094       -.38953E-06   -.71204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.8719
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.39839
  Prefactor  = 31.2106
  Prefactor  = 4.51734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9394
  Prefactor  = 0.0001
  Prefactor  = 31.7676
  norm       = 6.99939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98891
  norm       = 0.490397
  Prefactor  = 10.7794
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25968
  Prefactor  = 0.782063
 **********
 **   18 **HESSE 
 **********

 FCN=   4034.502     FROM HESSE     STATUS=OK           515 CALLS     4011 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2800        .16704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.872        6.6024        .12152E-03   -1.5048    
   3  Prefactor     .10000E-03    .81603        .55990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .44343        .40960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3984        8.9360        .65374E-03   -1.5095    
   7  Prefactor     31.211        77.992        .71344E-04   -1.4590    
   8  Prefactor     4.5173        14.079        .18940E-03   -1.5283    
   9  Prefactor     .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7464        .14870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0928        .13979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.939        17.330        .89701E-04   -1.4815    
  13  Prefactor     .10000E-03    26.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.768        22.877        .71093E-04   -1.4580    
  15  norm          6.9994        9.5730        .15166E-03   -1.5179    
  16  Prefactor     .10000E-03    3.7832        .12065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9889        8.9678        .11746E-02   -1.5362    
  21  norm          .49040        16.326        .23231E-02   -1.5568    
  22  Prefactor     10.779        9.3090        .12197E-03   -1.5051    
  23  norm          .10000E-03    12.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    67.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.0010        .87670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2597        .25381        .28742E-03   -.84778    
  28  Prefactor     .78206        .13294        .18324E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52241e-11
Minuit parameter uncertainties:
  1  9.83044e-07
  2  6.60281
  3  3.56861e-07
  4  6.26461e-09
  5  2.64725e-06
  6  8.93722
  7  78.248
  8  14.0891
  9  5.82919e-06
  10  2.1456e-06
  11  1.43339e-06
  12  17.3344
  13  1.01674e-05
  14  22.8836
  15  9.57513
  16  1.63743e-07
  17  1.04805e-05
  18  9.89207e-06
  19  1.43099e-05
  20  8.97178
  21  5.66023
  22  9.31026
  23  3.28392e-06
  24  6.41112e-06
  25  1.96267e-05
  26  2.97988e-08
  27  0.25406
  28  0.132999
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  3.177e+01  2.288e+01  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  7.821e-01  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.260e+00  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.17
Ra Dec: 39.940 4.264
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 9.07e-08 +/- 6.52e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.49e-05

TS (Fixed Index): 3.17
Ra Dec: 39.940 4.264
Photon Flux Upper Limit: 2.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636853/likelihoodResults_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.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) = 4034.41826037
delta logL = 0.0842147843118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4034.40499506
delta logL = 0.0974800923095

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4034.405     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.596        25.798        .67158E-04    .25392E-05
   2  Index         2.4706        .65232        .79994E-02    .14844E-05
   3  Normalizat    1.2708        .25108        .28635E-03    .27394E-05
   4  Prefactor     .77830        .12807        .18358E-03   -.26289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5963
  Index      = 2.47058
  Normalizat = 1.27076
  Prefactor  = 0.778299
 **********
 **   18 **HESSE 
 **********

 FCN=   4034.405     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.596        25.694        .26863E-05   -1.4514    
   2  Index         2.4706        .64959        .31998E-03   -.53041    
   3  Normalizat    1.2708        .25126        .11454E-04   -.84444    
   4  Prefactor     .77830        .12814        .73431E-05   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02725e-12
Minuit parameter uncertainties:
  1  25.7021
  2  0.652071
  3  0.251499
  4  0.128184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636853': 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) = 4034.4049932
delta logL = 0.0974819520061

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  3.560e+01  2.570e+01  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.471e+00  6.521e-01  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  7.783e-01  1.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.271e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 39.940 4.264
Photon Index (Free Index): 2.47 +/- 0.65
Photon Flux (Free Index): 7.97e-08 +/- 6.45e-08
Energy Flux (Free Index): 2.39e-05 +/- 1.94e-05

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/636853/cmap_HighResolution_435283201_435542401_4FGL_J0239.7+0415_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='9.07e-08', energy_flux2='2.39e-05', photon_flux_error='6.52e-08', dlogl='9.75e-02', energy_flux='2.06e-05', photon_flux2='7.97e-08', job_status='DONE', time_completed='2021-08-16 11:20:18.731929', photon_index_error2='0.65', photon_index2='2.47', ts='3.17', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='2.32e-07', energy_flux_error2='1.94e-05', EG='1.26', time_epoch_completed='1629138018.73', return_code='0', job_id='636853', GAL2='0.78', EG2='1.27', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.45e-08', ts2='3.34', photon_index='2.78' WHERE bin_id='756' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:20:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 636853: <4FGL_J0239.7+0415_daily_bin756> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin756> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 11:06:22 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 11:08:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 11:08:36 2021
Terminated at Mon Aug 16 11:20:19 2021
Results reported at Mon Aug 16 11:20:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin756 39.9403 4.2643 435283201 435542401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.7+0415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            837 sec.

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

