/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 = 7655
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0739.2+0137_daily_bin272
RA = 114.82, Dec = 1.6216
tmin = 309830401, tmax = 310089601
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='586143', job_status='RUN', time_executed='2021-08-27 20:05:53.959864', time_epoch_executed='1630119953.96' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586143

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586143/ft1_4FGL_J0739.2+0137_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586143/ft1_4FGL_J0739.2+0137_daily_bin272.fits outfile=/scratch/kocevski/586143/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin272.fits ra=114.82 dec=1.6216 rad=12.0 tmin=309830401.0 tmax=310089601.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 3.75
user 3.25
sys 0.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.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/586143/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin272.fits evtable="EVENTS" outfile="/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.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.77
user 0.33
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/586143/ltcube_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.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/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits
.....................!
real 13.06
user 12.37
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/586143/ltcube_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.fits outfile=/scratch/kocevski/586143/expmap_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.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/586143/ltcube_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.fits
.....................!
real 190.71
user 184.97
sys 5.01

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 149 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0739.2+0137 @ 114.82 1.6216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits scfile=/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits outfile=/scratch/kocevski/586143/cmap_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.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=114.82 yref=1.6216 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.79
user 0.36
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits scfile=/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits outfile=/scratch/kocevski/586143/cmap_HighResolution_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.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=114.82 yref=1.6216 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.76
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/586143/Model_4FGL_J0739.2+0137_daily_bin272.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits.....................!
real 129.71
user 125.34
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits', '/scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits', expMap='/scratch/kocevski/586143/expmap_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.fits', expCube='/scratch/kocevski/586143/ltcube_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/586143/Model_4FGL_J0739.2+0137_daily_bin272.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0739.2+0137'

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.536e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/586143/ft1_filtered_4FGL_J0739.2+0137_daily_bin272.fits
Spacecraft file(s): /scratch/kocevski/586143/ft2_4FGL_J0739.2+0137_daily_bin272.fits
Exposure map: /scratch/kocevski/586143/expmap_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.fits
Exposure cube: /scratch/kocevski/586143/ltcube_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/586143/Model_4FGL_J0739.2+0137_daily_bin272.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) = 8447.985576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.768       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.3506       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5602       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15236E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4129       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2112       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.248       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8130       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.543       1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.714       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3400       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90078       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8447.982     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2868 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.769        15.729       -.86208E-07   -.57945E-04
   2  norm          .10000E-03    20.586        .12508E-04** at limit **
   3  Prefactor     .10000E-03    43.418       -.25561E-04** at limit **
   4  norm          5.3512        5.3045       -.43373E-06   -.33262E-03
   5  norm          3.5055        2.5837       -.28004E-06   -.65889E-03
   6  Prefactor     .10000E-03    56.999        .38176E-04** at limit **
   7  Prefactor     7.5603        11.596       -.90604E-07   -.11058E-03
   8  Prefactor     .10000E-03    5.6945        .14503E-06** at limit **
   9  Prefactor     .10000E-03    111.72       -.23039E-04** at limit **
  10  norm          4.5694        2.4399       -.10943E-06   -.14817E-03
  11  Prefactor     .10000E-03    13.625        .75821E-06** at limit **
  12  norm          22.757        18.385       -.11589E-07    .66502E-07
  13  Prefactor     7.4132        3.6775       -.50969E-07   -.32593E-05
  14  norm          7.2113        11.459       -.12586E-05   -.67439E-03
  15  Prefactor     .10000E-03    3.7934        .10061E-06** at limit **
  16  Prefactor     .10000E-03    2.9154        .14574E-06** at limit **
  17  Prefactor     .10000E-03    19.098       -.98775E-05** at limit **
  18  norm          14.249        10.628       -.35948E-07    .40256E-05
  19  norm          .10000E-03    1.0021       -.15138E-06** at limit **
  20  norm          1.8133        2.0697       -.14845E-06   -.86387E-03
  21  norm          .10000E-03    6.6410        .11383E-06** at limit **
  22  norm          12.544        5.7543       -.75376E-06    .28151E-04
  23  Prefactor     46.722        40.534        .51697E-05    .15441E-04
  24  Normalizat    1.3398        .21684       -.28610E-06    .87634E-04
  25  Prefactor     .90080        .72074E-01    .16130E-06   -.44421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.7695
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.35118
  norm       = 3.50549
  Prefactor  = 0.0001
  Prefactor  = 7.56028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.56943
  Prefactor  = 0.0001
  norm       = 22.7574
  Prefactor  = 7.41317
  norm       = 7.2113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2494
  norm       = 0.0001
  norm       = 1.81326
  norm       = 0.0001
  norm       = 12.5441
  Prefactor  = 46.7217
  Normalizat = 1.33982
  Prefactor  = 0.900802
 **********
 **   18 **HESSE 
 **********

 FCN=   8447.982     FROM HESSE     STATUS=OK           429 CALLS     3297 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.769        15.885        .82163E-04   -1.4733    
   2  norm          .10000E-03    20.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3512        5.3120        .17374E-03   -1.5245    
   5  norm          3.5055        2.5825        .11910E-03   -1.5333    
   6  Prefactor     .10000E-03    56.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5603        11.596        .14585E-03   -1.5158    
   8  Prefactor     .10000E-03    5.7121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    112.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5694        2.4435        .98996E-04   -1.5280    
  11  Prefactor     .10000E-03    13.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.757        18.390        .83966E-04   -1.4754    
  13  Prefactor     7.4132        3.6868        .11958E-03   -1.5163    
  14  norm          7.2113        11.552        .74686E-03   -1.5171    
  15  Prefactor     .10000E-03    3.7954        .17481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9195        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.249        10.640        .10611E-03   -1.4953    
  19  norm          .10000E-03    1.0061        .89748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8133        2.0571        .13588E-03   -1.5439    
  21  norm          .10000E-03    6.6435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.544        5.7704        .11310E-03   -1.4999    
  23  Prefactor     46.722        40.740        .58665E-04   -1.4340    
  24  Normalizat    1.3398        .23273        .39311E-03   -.82385    
  25  Prefactor     .90080        .77713E-01    .16158E-03   -.96113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33711e-09
Minuit parameter uncertainties:
  1  15.8881
  2  3.21867e-05
  3  5.14094e-05
  4  5.31243
  5  2.58256
  6  1.01283e-05
  7  11.5996
  8  5.00037e-07
  9  0.000470215
  10  2.44357
  11  1.41565e-06
  12  18.3948
  13  3.6869
  14  11.5558
  15  2.28786e-06
  16  9.23209e-07
  17  6.17647e-06
  18  10.6414
  19  1.19825e-06
  20  2.0572
  21  1.128e-05
  22  5.77068
  23  40.7638
  24  0.232914
  25  0.0777224
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.569e+00  2.444e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.008e-01  7.772e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.340e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.48
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 6.05e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.96e-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) = 8447.70970435
delta logL = 0.272749505613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8445.34027945
delta logL = 2.64217441211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22181E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .77646E-06   1.0000          .0000       5.0000    
     3 'Normalizat'    1.4367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8445.340     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      258 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22179E-01    .27220E-01    .29963E-02   -.50254E-04
   2  alpha         .12934E-11    .55766        .46384    ** at limit **
   3  Normalizat    1.4367        .19529        .86362E-01   -.98477E-06
   4  Prefactor     .89588        .67695E-01    .44953E-01    .76530E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0221787
  alpha      = 1.29341e-12
  Normalizat = 1.4367
  Prefactor  = 0.895884
 **********
 **   18 **HESSE 
 **********

 FCN=   8445.340     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22179E-01    .22487E-01    .11040E-03   -1.5678    
   2  alpha         .12934E-11    .87199        .41041E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4367        .20674        .38235E-03   -.79573    
   4  Prefactor     .89588        .71789E-01    .16215E-03   -.96285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35125e-11
Minuit parameter uncertainties:
  1  0.0224868
  2  2.19106e-06
  3  0.206864
  4  0.0717969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586143': 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) = 8445.34027902
delta logL = 2.64217484174

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.218e-02  2.249e-02  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.293e-12  2.191e-06  0.000e+00  5.000e+00 ( 1.000e+00)
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  8.959e-01  7.180e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.437e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.57
Ra Dec: 114.820 1.622
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.31e-09 +/- 4.37e-09
Energy Flux (Free Index): 1.28e-04 +/- 1.30e-04

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/586143/cmap_HighResolution_309830401_310089601_4FGL_J0739.2+0137_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='1.28e-04', photon_flux_error='6.05e-08', dlogl='2.64e+00', energy_flux='3.66e-05', photon_flux2='4.31e-09', job_status='DONE', time_completed='2021-08-27 20:18:36.281563', photon_index_error2='0.00', photon_index2='0.00', ts='8.48', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.30e-04', EG='1.34', time_epoch_completed='1630120716.28', return_code='0', job_id='586143', GAL2='0.90', EG2='1.44', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='4.37e-09', ts2='13.57', photon_index='2.31' WHERE bin_id='272' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:18:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 586143: <4FGL_J0739.2+0137_daily_bin272> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin272> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 20:05:30 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:05:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 20:05:40 2021
Terminated at Fri Aug 27 20:18:36 2021
Results reported at Fri Aug 27 20:18:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin272 114.82 1.6216 309830401 310089601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.2+0137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            786 sec.

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

