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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin846
RA = 39.9403, Dec = 4.2643
tmin = 458611201, tmax = 458870401
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='636995', job_status='RUN', time_executed='2021-08-16 11:10:03.344989', time_epoch_executed='1629137403.35' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636995/ft1_4FGL_J0239.7+0415_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636995/ft1_4FGL_J0239.7+0415_daily_bin846.fits outfile=/scratch/kocevski/636995/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin846.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=458611201.0 tmax=458870401.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 5.12
user 3.48
sys 1.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.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/636995/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin846.fits evtable="EVENTS" outfile="/scratch/kocevski/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.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.75
user 0.36
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits" evtable="EVENTS" scfile=/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits sctable="SC_DATA" outfile=/scratch/kocevski/636995/ltcube_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.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/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits
.....................!
real 15.13
user 13.26
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/636995/ltcube_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.fits outfile=/scratch/kocevski/636995/expmap_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.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/636995/ltcube_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.fits
.....................!
real 196.01
user 187.96
sys 5.98

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/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits scfile=/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits outfile=/scratch/kocevski/636995/cmap_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.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.57
user 0.37
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits scfile=/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits outfile=/scratch/kocevski/636995/cmap_HighResolution_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.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 1.68
user 0.39
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636995/Model_4FGL_J0239.7+0415_daily_bin846.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/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits.....................!
real 91.30
user 85.60
sys 2.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits', '/scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits', expMap='/scratch/kocevski/636995/expmap_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.fits', expCube='/scratch/kocevski/636995/ltcube_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636995/Model_4FGL_J0239.7+0415_daily_bin846.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/636995/ft1_filtered_4FGL_J0239.7+0415_daily_bin846.fits
Spacecraft file(s): /scratch/kocevski/636995/ft2_4FGL_J0239.7+0415_daily_bin846.fits
Exposure map: /scratch/kocevski/636995/expmap_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.fits
Exposure cube: /scratch/kocevski/636995/ltcube_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636995/Model_4FGL_J0239.7+0415_daily_bin846.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) = 7030.27483892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9824       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.015       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.422       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.955       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.622       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7907       1.0000         .10000E-03   10000.    
    20 'norm      '    16.592       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7377       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9978       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85704       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=   7030.236     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3543 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1418       -.12272E-06** at limit **
   2  norm          1.2275        3.6868       -.10345E-05   -.11852E-04
   3  Prefactor     1.9807        2.7946       -.43071E-06   -.30523E-05
   4  norm          2.4830        1.0269       -.29401E-07   -.74248E-04
   5  Prefactor     .10000E-03    17.147       -.19171E-07** at limit **
   6  Prefactor     2.9205        4.6594        .44705E-06    .96004E-05
   7  Prefactor     58.017        60.591       -.58666E-06    .48588E-05
   8  Prefactor     .12287        120.12        .57266E-05   -.95825E-06
   9  Prefactor     .10000E-03    12.060       -.43839E-06** at limit **
  10  Prefactor     .10000E-03    4.2404       -.56267E-07** at limit **
  11  Prefactor     .10000E-03    4.4645        .14813E-06** at limit **
  12  Prefactor     30.422        14.228        .66075E-07    .33933E-04
  13  Prefactor     .10000E-03    74.226       -.73880E-05** at limit **
  14  Prefactor     62.950        21.355        .48439E-06   -.22661E-04
  15  norm          .10000E-03    2.7856        .53253E-07** at limit **
  16  Prefactor     .76715        9.4171        .87204E-06   -.70077E-04
  17  Prefactor     .10000E-03    62.555        .38139E-05** at limit **
  18  Prefactor     11.446        71.158       -.65273E-05   -.11753E-04
  19  Prefactor     6.7895        6.6188       -.18582E-06   -.18137E-04
  20  norm          16.592        9.5825        .27487E-07   -.18737E-05
  21  norm          3.7375        3.4318       -.69116E-07   -.18454E-04
  22  Prefactor     .10000E-03    1.2999        .11008E-07** at limit **
  23  norm          .10000E-03    4.8825        .23264E-06** at limit **
  24  Prefactor     8.9960        13.080        .42243E-06   -.96101E-05
  25  Prefactor     .10000E-03    6.6906       -.87878E-07** at limit **
  26  Prefactor     .10000E-03    3.2736        .16612E-06** at limit **
  27  Normalizat    1.0516        .19402       -.78616E-06   -.65281E-04
  28  Prefactor     .85699        .96667E-01    .66577E-07   -.11850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.22749
  Prefactor  = 1.98073
  norm       = 2.48303
  Prefactor  = 0.0001
  Prefactor  = 2.92047
  Prefactor  = 58.0174
  Prefactor  = 0.122871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.422
  Prefactor  = 0.0001
  Prefactor  = 62.95
  norm       = 0.0001
  Prefactor  = 0.76715
  Prefactor  = 0.0001
  Prefactor  = 11.4464
  Prefactor  = 6.7895
  norm       = 16.592
  norm       = 3.73754
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.99596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05165
  Prefactor  = 0.856986
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.236     FROM HESSE     STATUS=OK           529 CALLS     4072 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1532        .14511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2275        3.6712        .26795E-03   -1.5486    
   3  Prefactor     1.9807        2.7426        .15166E-03   -1.5426    
   4  norm          2.4830        1.0312        .12971E-03   -1.5393    
   5  Prefactor     .10000E-03    17.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9205        4.6382        .22086E-03   -1.5366    
   7  Prefactor     58.017        60.420        .52671E-04   -1.4183    
   8  Prefactor     .12287        7.9577        .75823E-01   -1.5638    
   9  Prefactor     .10000E-03    12.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2420        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5020        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.422        14.204        .72642E-04   -1.4604    
  13  Prefactor     .10000E-03    73.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.950        21.416        .50575E-04   -1.4119    
  15  norm          .10000E-03    2.7909        .13667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .76715        43.515        .47309E-02   -1.5533    
  17  Prefactor     .10000E-03    63.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.446        71.809        .11751E-03   -1.5031    
  19  Prefactor     6.7895        6.6150        .15397E-03   -1.5187    
  20  norm          16.592        9.5823        .98327E-04   -1.4893    
  21  norm          3.7375        3.4333        .14270E-03   -1.5321    
  22  Prefactor     .10000E-03    1.3020        .93354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.9469        .18090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.9960        13.078        .13362E-03   -1.5108    
  25  Prefactor     .10000E-03    6.6937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3672        .29617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0516        .21614        .31551E-03   -.91320    
  28  Prefactor     .85699        .10754        .18386E-03   -.97661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00447e-08
Minuit parameter uncertainties:
  1  3.13889e-06
  2  3.67185
  3  2.74275
  4  1.0312
  5  3.49505e-05
  6  4.6388
  7  60.4843
  8  1.97711
  9  5.07408e-06
  10  1.2585e-06
  11  4.39782e-06
  12  14.2057
  13  0.000213344
  14  21.4188
  15  1.30674e-06
  16  11.5637
  17  2.00774e-05
  18  57.4411
  19  6.6157
  20  9.58321
  21  3.43345
  22  3.48182e-07
  23  4.70734e-06
  24  13.0822
  25  2.54339e-06
  26  1.72856e-06
  27  0.216318
  28  0.107566
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  6.295e+01  2.142e+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:  8.570e-01  1.076e-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.052e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.30
Ra Dec: 39.940 4.264
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 6.10e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 1.39e-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) = 7029.8423036
delta logL = 0.393871225367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7029.774577
delta logL = 0.461597818769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.647       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4472       1.0000          .0000       10.000    
     3 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84951       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.

 FCN=   7029.775     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.647        33.127        .11857E-02   -.32246E-02
   2  Index         2.4472        .40611        .13463        .27832E-04
   3  Normalizat    1.0724        .17914        .70718E-01   -.58800E-04
   4  Prefactor     .84948        .94471E-01    .44358E-01    .10308E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.6468
  Index      = 2.44719
  Normalizat = 1.07244
  Prefactor  = 0.84948
 **********
 **   18 **HESSE 
 **********

 FCN=   7029.775     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.647        25.052        .47428E-04   -1.4013    
   2  Index         2.4472        .32338        .56372E-02   -.53584    
   3  Normalizat    1.0724        .19873        .31290E-03   -.90642    
   4  Prefactor     .84948        .10439        .18451E-03   -.97929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16033e-09
Minuit parameter uncertainties:
  1  25.0555
  2  0.323684
  3  0.198867
  4  0.104414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636995': 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) = 7029.77457691
delta logL = 0.461597910358

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  7.165e+01  2.506e+01  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.447e+00  3.237e-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:  8.495e-01  1.044e-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.072e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.08
Ra Dec: 39.940 4.264
Photon Index (Free Index): 2.45 +/- 0.32
Photon Flux (Free Index): 1.58e-07 +/- 6.01e-08
Energy Flux (Free Index): 4.87e-05 +/- 2.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/636995/cmap_HighResolution_458611201_458870401_4FGL_J0239.7+0415_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='4.87e-05', photon_flux_error='6.10e-08', dlogl='4.62e-01', energy_flux='4.09e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-08-16 11:22:57.954004', photon_index_error2='0.32', photon_index2='2.45', ts='19.30', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.05', time_epoch_completed='1629138177.95', return_code='0', job_id='636995', GAL2='0.85', EG2='1.07', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.01e-08', ts2='20.08', photon_index='2.78' WHERE bin_id='846' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:22:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 636995: <4FGL_J0239.7+0415_daily_bin846> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin846> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 11:06:32 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 11:09:22 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:09:22 2021
Terminated at Mon Aug 16 11:22:58 2021
Results reported at Mon Aug 16 11:22:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin846 39.9403 4.2643 458611201 458870401 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 :                                   772.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            986 sec.

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

