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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin324
RA = 114.82, Dec = 1.6216
tmin = 323308801, tmax = 323568001
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='586220', job_status='RUN', time_executed='2021-08-27 20:08:49.351881', time_epoch_executed='1630120129.35' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586220/ft1_4FGL_J0739.2+0137_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586220/ft2_4FGL_J0739.2+0137_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586220/ft1_4FGL_J0739.2+0137_daily_bin324.fits outfile=/scratch/kocevski/586220/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin324.fits ra=114.82 dec=1.6216 rad=12.0 tmin=323308801.0 tmax=323568001.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.68
user 3.13
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586220/ft2_4FGL_J0739.2+0137_daily_bin324.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/586220/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/586220/ft1_filtered_4FGL_J0739.2+0137_daily_bin324.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.84
user 0.32
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586220/ft1_filtered_4FGL_J0739.2+0137_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/586220/ft2_4FGL_J0739.2+0137_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/586220/ltcube_323308801_323568001_4FGL_J0739.2+0137_daily_bin324.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/586220/ft2_4FGL_J0739.2+0137_daily_bin324.fits
.....................!
real 12.33
user 11.54
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586220/ft1_filtered_4FGL_J0739.2+0137_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/586220/ft2_4FGL_J0739.2+0137_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/586220/ltcube_323308801_323568001_4FGL_J0739.2+0137_daily_bin324.fits outfile=/scratch/kocevski/586220/expmap_323308801_323568001_4FGL_J0739.2+0137_daily_bin324.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/586220/ltcube_323308801_323568001_4FGL_J0739.2+0137_daily_bin324.fits
.....................!
real 192.89
user 187.03
sys 5.30

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/586220/ft1_filtered_4FGL_J0739.2+0137_daily_bin324.fits scfile=/scratch/kocevski/586220/ft2_4FGL_J0739.2+0137_daily_bin324.fits outfile=/scratch/kocevski/586220/cmap_323308801_323568001_4FGL_J0739.2+0137_daily_bin324.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.84
user 0.36
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586220/ft1_filtered_4FGL_J0739.2+0137_daily_bin324.fits scfile=/scratch/kocevski/586220/ft2_4FGL_J0739.2+0137_daily_bin324.fits outfile=/scratch/kocevski/586220/cmap_HighResolution_323308801_323568001_4FGL_J0739.2+0137_daily_bin324.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.94
user 0.38
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.922       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.824       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1941       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.865       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    26.624       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49384E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    8.9231       1.0000         .10000E-03   10000.    
    19 'norm      '    .95144       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7624       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.864       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86009       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99356       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=   8947.345     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2882 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.924        17.510        .64599E-07    .42955E-05
   2  norm          .10000E-03    9.0457        .54207E-08** at limit **
   3  Prefactor     .10000E-03    83.206        .16525E-05** at limit **
   4  norm          13.825        7.8185       -.16538E-06   -.52164E-05
   5  norm          2.0878        1.9487        .24486E-06    .88342E-04
   6  Prefactor     28.617        64.886       -.57652E-05    .13198E-04
   7  Prefactor     6.1962        9.9349       -.64466E-06   -.10711E-04
   8  Prefactor     .10000E-03    10.248       -.30271E-06** at limit **
   9  Prefactor     .10000E-03    23.240        .56513E-06** at limit **
  10  norm          13.866        3.1378        .53414E-07   -.14551E-04
  11  Prefactor     .10000E-03    17.026       -.16863E-06** at limit **
  12  norm          .10000E-03    6.2108        .15118E-08** at limit **
  13  Prefactor     .10000E-03    1.0148        .59118E-07** at limit **
  14  norm          26.624        17.063       -.23421E-07   -.24957E-05
  15  Prefactor     .10000E-03    3.1252        .40652E-07** at limit **
  16  Prefactor     .10000E-03    2.5536       -.69652E-07** at limit **
  17  Prefactor     .10000E-03    117.82       -.37120E-05** at limit **
  18  norm          8.9234        8.3551       -.61542E-07   -.30615E-05
  19  norm          .94966        2.4118        .46985E-06    .72354E-04
  20  norm          2.7634        2.0615       -.24908E-06   -.72446E-04
  21  norm          .10000E-03    14.614        .55851E-06** at limit **
  22  norm          10.863        5.1419       -.71291E-07   -.79395E-05
  23  Prefactor     .10000E-03    18.144       -.22109E-06** at limit **
  24  Normalizat    .86014        .20419       -.47620E-06   -.13094E-04
  25  Prefactor     .99352        .74971E-01    .68294E-07   -.73670E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.9239
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8249
  norm       = 2.08779
  Prefactor  = 28.6175
  Prefactor  = 6.19624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8658
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.6238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.92341
  norm       = 0.94966
  norm       = 2.76344
  norm       = 0.0001
  norm       = 10.8631
  Prefactor  = 0.0001
  Normalizat = 0.860142
  Prefactor  = 0.993523
 **********
 **   18 **HESSE 
 **********

 FCN=   8947.345     FROM HESSE     STATUS=OK           429 CALLS     3311 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.924        17.694        .83664E-04   -1.4750    
   2  norm          .10000E-03    9.0525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    83.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.825        7.8442        .53863E-03   -1.4964    
   5  norm          2.0878        1.9460        .11948E-03   -1.5419    
   6  Prefactor     28.617        64.247        .74720E-04   -1.4638    
   7  Prefactor     6.1962        9.9147        .80650E-03   -1.5210    
   8  Prefactor     .10000E-03    10.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.866        3.1372        .75249E-04   -1.4963    
  11  Prefactor     .10000E-03    17.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.2132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0209        .93052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.624        17.069        .77639E-04   -1.4676    
  15  Prefactor     .10000E-03    3.1273        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5559        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    114.11        .70218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.9234        8.3550        .13418E-03   -1.5110    
  19  norm          .94966        2.3687        .21954E-03   -1.5513    
  20  norm          2.7634        2.0446        .10857E-03   -1.5375    
  21  norm          .10000E-03    14.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.863        5.1394        .12155E-03   -1.5049    
  23  Prefactor     .10000E-03    18.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86014        .21108        .46046E-03   -.97875    
  25  Prefactor     .99352        .79607E-01    .15539E-03   -.92946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58277e-11
Minuit parameter uncertainties:
  1  17.6982
  2  9.45204e-07
  3  7.12953e-05
  4  7.84478
  5  1.94602
  6  64.4028
  7  9.91737
  8  6.83846e-06
  9  9.71108e-06
  10  3.13729
  11  4.34148e-06
  12  4.15113e-07
  13  1.62764e-07
  14  17.072
  15  2.78339e-07
  16  7.49907e-08
  17  3.09509e-05
  18  8.35612
  19  2.36897
  20  2.04466
  21  4.94199e-06
  22  5.13965
  23  7.81802e-06
  24  0.211279
  25  0.0796168
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.387e+01  3.137e+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.935e-01  7.962e-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.601e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.51
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.44e-07 +/- 7.77e-08
Energy Flux (Fixed Index): 1.11e-04 +/- 2.51e-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) = 8946.42648608
delta logL = 0.918797228245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8946.39990694
delta logL = 0.945376371656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.678       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0037       1.0000          .0000       5.0000    
     3 'Normalizat'    .89686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98626       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=   8946.400     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      218 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.678        3.5010        .26136E-02   -.19818E-02
   2  alpha         2.0037        .21757        .17999       -.23588E-04
   3  Normalizat    .89686        .19301        .10204        .33488E-04
   4  Prefactor     .98626        .68902E-01    .35271E-01    .14822E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6777
  alpha      = 2.00372
  Normalizat = 0.896856
  Prefactor  = 0.986257
 **********
 **   18 **HESSE 
 **********

 FCN=   8946.400     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.678        3.3327        .78709E-04   -1.4942    
   2  alpha         2.0037        .21358        .77134E-02   -.19984    
   3  Normalizat    .89686        .20170        .45227E-03   -.96571    
   4  Prefactor     .98626        .71989E-01    .15586E-03   -.93189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14551e-10
Minuit parameter uncertainties:
  1  3.33276
  2  0.213849
  3  0.201866
  4  0.0719957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586220': 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) = 8946.39990693
delta logL = 0.945376375485

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.468e+01  3.333e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.004e+00  2.138e-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.863e-01  7.200e-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.969e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.98
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.00 +/- 0.21
Photon Flux (Free Index): 2.94e-07 +/- 7.72e-08
Energy Flux (Free Index): 1.39e-04 +/- 4.07e-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/586220/cmap_HighResolution_323308801_323568001_4FGL_J0739.2+0137_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-07', energy_flux2='1.39e-04', photon_flux_error='7.77e-08', dlogl='9.45e-01', energy_flux='1.11e-04', photon_flux2='2.94e-07', job_status='DONE', time_completed='2021-08-27 20:21:57.089537', photon_index_error2='0.21', photon_index2='2.00', ts='51.51', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.07e-05', EG='0.86', time_epoch_completed='1630120917.09', return_code='0', job_id='586220', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='7.72e-08', ts2='52.98', photon_index='2.31' WHERE bin_id='324' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 586220: <4FGL_J0739.2+0137_daily_bin324> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin324> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 20:05:35 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:05:44 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:44 2021
Terminated at Fri Aug 27 20:21:57 2021
Results reported at Fri Aug 27 20:21:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin324 114.82 1.6216 323308801 323568001 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 :                                   788.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            982 sec.

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

