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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1525
RA = 114.82, Dec = 1.6216
tmin = 634608001, tmax = 634867201
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='594912', job_status='RUN', time_executed='2021-08-27 20:36:09.914023', time_epoch_executed='1630121769.91' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594912/ft1_4FGL_J0739.2+0137_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594912/ft1_4FGL_J0739.2+0137_daily_bin1525.fits outfile=/scratch/kocevski/594912/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1525.fits ra=114.82 dec=1.6216 rad=12.0 tmin=634608001.0 tmax=634867201.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.80
user 2.86
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/594912/ltcube_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.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/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits
.....................!
real 13.64
user 12.44
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/594912/ltcube_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.fits outfile=/scratch/kocevski/594912/expmap_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.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/594912/ltcube_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.fits
.....................!
real 191.19
user 185.31
sys 5.38

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/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits scfile=/scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits outfile=/scratch/kocevski/594912/cmap_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.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 1.29
user 0.38
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits scfile=/scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits outfile=/scratch/kocevski/594912/cmap_HighResolution_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.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 1.23
user 0.38
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594912/Model_4FGL_J0739.2+0137_daily_bin1525.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/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits.....................!
real 116.17
user 113.76
sys 2.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits', '/scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits', expMap='/scratch/kocevski/594912/expmap_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.fits', expCube='/scratch/kocevski/594912/ltcube_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/594912/Model_4FGL_J0739.2+0137_daily_bin1525.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/594912/ft1_filtered_4FGL_J0739.2+0137_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/594912/ft2_4FGL_J0739.2+0137_daily_bin1525.fits
Exposure map: /scratch/kocevski/594912/expmap_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.fits
Exposure cube: /scratch/kocevski/594912/ltcube_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/594912/Model_4FGL_J0739.2+0137_daily_bin1525.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) = 6924.9344501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0285       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    116.49       1.0000         .10000E-03   10000.    
     4 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.030       1.0000         .10000E-03   10000.    
    10 'norm      '    10.713       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28394E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1450       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.299       1.0000         .10000E-03   10000.    
    14 'norm      '    54.067       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.5577       1.0000         .10000E-03   10000.    
    21 'norm      '    .12102E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10350E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .85057E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78392       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0101       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=   6924.911     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2889 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0264        11.170       -.42600E-06    .77089E-05
   2  norm          .10000E-03    13.742        .16419E-06** at limit **
   3  Prefactor     116.36        106.62       -.36599E-04    .94413E-04
   4  norm          .10000E-03    2.2576       -.10241E-06** at limit **
   5  norm          .10000E-03    1.0424        .51880E-06** at limit **
   6  Prefactor     .92309        1685.1       -.55296E-03    .11826E-04
   7  Prefactor     10.616        8.8208        .18271E-05    .50238E-03
   8  Prefactor     .10000E-03    26.688       -.18359E-05** at limit **
   9  Prefactor     24.007        41.084        .12465E-03    .22485E-03
  10  norm          10.720        4.5428       -.66770E-06    .16465E-02
  11  Prefactor     .10000E-03    88.451        .31035E-04** at limit **
  12  norm          1.1296        21.674       -.36706E-05   -.35972E-04
  13  Prefactor     26.296        17.652        .14223E-05   -.81993E-05
  14  norm          54.096        60.012       -.35920E-04   -.34893E-04
  15  Prefactor     .10001E-03    49.093       -.30651E-05** at limit **
  16  Prefactor     .10000E-03    5.4186       -.19050E-06** at limit **
  17  Prefactor     .10000E-03    79.420        .34122E-04** at limit **
  18  norm          .10000E-03    29.121        .20218E-05** at limit **
  19  norm          .10000E-03    .99931       -.36452E-07** at limit **
  20  norm          8.5567        3.1807       -.15450E-06    .14867E-03
  21  norm          .10000E-03    98.019       -.50542E-04** at limit **
  22  norm          .10000E-03    5.8851       -.25173E-06** at limit **
  23  Prefactor     .10007E-03    853.80        .34033E-03** at limit **
  24  Normalizat    .78466        .36141        .18304E-05    .37597E-03
  25  Prefactor     1.0101        .84454E-01    .21035E-05    .11452E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.0264
  norm       = 0.0001
  Prefactor  = 116.356
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.923091
  Prefactor  = 10.6163
  Prefactor  = 0.0001
  Prefactor  = 24.007
  norm       = 10.7196
  Prefactor  = 0.000100001
  norm       = 1.12964
  Prefactor  = 26.2964
  norm       = 54.0958
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.55674
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100071
  Normalizat = 0.784658
  Prefactor  = 1.01009
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.911     FROM HESSE     STATUS=OK           421 CALLS     3310 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0264        11.248        .14150E-03   -1.5141    
   2  norm          .10000E-03    13.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     116.36        106.52        .18640E-03   -1.3546    
   4  norm          .10000E-03    2.2677        .12205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0469        .82784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .92309        1830.8        .33184E-02   -1.5516    
   7  Prefactor     10.616        8.8157        .12298E-03   -1.5056    
   8  Prefactor     .10000E-03    27.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.007        41.162        .81715E-04   -1.4728    
  10  norm          10.720        4.5296        .10592E-03   -1.5053    
  11  Prefactor     .10000E-03    89.297        .21413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1296        150.82        .72125E-02   -1.5495    
  13  Prefactor     26.296        17.648        .78117E-04   -1.4682    
  14  norm          54.096        59.990        .27275E-03   -1.4236    
  15  Prefactor     .10001E-03    49.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    79.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    29.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0008        .81215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.5567        3.1766        .85819E-04   -1.5123    
  21  norm          .10000E-03    98.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.9378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10007E-03    866.75        .20865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78466        .36313        .64821E-03   -1.0064    
  25  Prefactor     1.0101        .87394E-01    .14301E-03   -.92394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93508e-08
Minuit parameter uncertainties:
  1  11.2513
  2  2.15481e-05
  3  106.696
  4  9.13329e-06
  5  5.33253e-05
  6  84.9594
  7  8.81681
  8  0.000169999
  9  41.2107
  10  4.52971
  11  0.000588109
  12  26.1719
  13  17.6513
  14  60.0572
  15  0.00169877
  16  1.0633e-05
  17  0.000242957
  18  0.000159543
  19  1.17629e-06
  20  3.17669
  21  0.000650234
  22  2.56062e-05
  23  0.0159806
  24  0.364259
  25  0.0874058
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.072e+01  4.530e+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:  1.010e+00  8.741e-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:  7.847e-01  3.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.80
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.66e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 8.59e-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) = 6924.33648404
delta logL = 0.574135782973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6924.31603568
delta logL = 0.594584137109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7307       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8581       1.0000          .0000       5.0000    
     3 'Normalizat'    .86467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99889       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=   6924.316     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7268        4.1649        .32116E-02    .44124E-03
   2  alpha         1.8571        .32422        .26637       -.84316E-04
   3  Normalizat    .86505        .32829        .13953        .39439E-04
   4  Prefactor     .99884        .80032E-01    .32511E-01   -.69831E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.72679
  alpha      = 1.85709
  Normalizat = 0.865046
  Prefactor  = 0.998844
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.316     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7268        4.7639        .10571E-03   -1.5084    
   2  alpha         1.8571        .40247        .10833E-01   -.26008    
   3  Normalizat    .86505        .34397        .61973E-03   -.97699    
   4  Prefactor     .99884        .83201E-01    .14367E-03   -.92768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82107e-11
Minuit parameter uncertainties:
  1  4.76411
  2  0.404359
  3  0.344848
  4  0.0832114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594912': 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) = 6924.31603258
delta logL = 0.59458723629

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  9.727e+00  4.764e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.857e+00  4.044e-01  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:  9.988e-01  8.321e-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:  8.650e-01  3.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.70
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.86 +/- 0.40
Photon Flux (Free Index): 1.80e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.08e-04 +/- 5.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/594912/cmap_HighResolution_634608001_634867201_4FGL_J0739.2+0137_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.66e-07', energy_flux2='1.08e-04', photon_flux_error='1.12e-07', dlogl='5.95e-01', energy_flux='8.59e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-08-27 20:47:28.464624', photon_index_error2='0.40', photon_index2='1.86', ts='10.80', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='5.51e-05', EG='0.78', time_epoch_completed='1630122448.46', return_code='0', job_id='594912', GAL2='1.00', EG2='0.87', return_code2='0', energy_flux_error='3.63e-05', photon_flux_error2='1.09e-07', ts2='11.70', photon_index='2.31' WHERE bin_id='1525' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:47:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 594912: <4FGL_J0739.2+0137_daily_bin1525> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1525> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 20:35:39 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:35:47 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:35:47 2021
Terminated at Fri Aug 27 20:47:29 2021
Results reported at Fri Aug 27 20:47:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1525 114.82 1.6216 634608001 634867201 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 :                                   681.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            710 sec.

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

