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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1511
RA = 114.82, Dec = 1.6216
tmin = 630979201, tmax = 631238401
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='594889', job_status='RUN', time_executed='2021-08-27 20:38:30.955428', time_epoch_executed='1630121910.96' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594889/ft1_4FGL_J0739.2+0137_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594889/ft2_4FGL_J0739.2+0137_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594889/ft1_4FGL_J0739.2+0137_daily_bin1511.fits outfile=/scratch/kocevski/594889/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1511.fits ra=114.82 dec=1.6216 rad=12.0 tmin=630979201.0 tmax=631238401.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 2.61
sys 1.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594889/ft1_filtered_4FGL_J0739.2+0137_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/594889/ft2_4FGL_J0739.2+0137_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/594889/ltcube_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.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/594889/ft2_4FGL_J0739.2+0137_daily_bin1511.fits
.....................!
real 13.92
user 12.45
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594889/ft1_filtered_4FGL_J0739.2+0137_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/594889/ft2_4FGL_J0739.2+0137_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/594889/ltcube_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.fits outfile=/scratch/kocevski/594889/expmap_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.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/594889/ltcube_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.fits
.....................!
real 195.26
user 188.54
sys 6.26

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/594889/ft1_filtered_4FGL_J0739.2+0137_daily_bin1511.fits scfile=/scratch/kocevski/594889/ft2_4FGL_J0739.2+0137_daily_bin1511.fits outfile=/scratch/kocevski/594889/cmap_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.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.41
user 0.36
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594889/ft1_filtered_4FGL_J0739.2+0137_daily_bin1511.fits scfile=/scratch/kocevski/594889/ft2_4FGL_J0739.2+0137_daily_bin1511.fits outfile=/scratch/kocevski/594889/cmap_HighResolution_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.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.42
user 0.38
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.636       1.0000         .10000E-03   10000.    
     2 'norm      '    .10599E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38677E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57681E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    125.77       1.0000         .10000E-03   10000.    
     9 'Prefactor '    100.86       1.0000         .10000E-03   10000.    
    10 'norm      '    10.414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21652E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14995E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4977       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5698       1.0000         .10000E-03   10000.    
    21 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.877       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .21226       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80363       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=   804.3582     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     3244 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.618        40.863       -.40550E-05    .35439E-04
   2  norm          .10000E-03    81.501       -.56751E-06** at limit **
   3  Prefactor     .10868E-03    7022.4       -.59757E-04** at limit **
   4  norm          .10000E-03    12.214       -.11924E-06** at limit **
   5  norm          .10000E-03    31.035       -.53114E-08** at limit **
   6  Prefactor     .10003E-03    319.72        .27989E-05** at limit **
   7  Prefactor     .10000E-03    24.402       -.57016E-07** at limit **
   8  Prefactor     125.77        93.162        .45788E-05    .29865E-04
   9  Prefactor     100.18        1036.0        .43910E-04   -.17215E-04
  10  norm          10.421        15.566        .19695E-05    .54596E-04
  11  Prefactor     .10003E-03    492.10        .68680E-05** at limit **
  12  norm          .10000E-03    33.176        .92587E-07** at limit **
  13  Prefactor     .10000E-03    18.746        .94642E-07** at limit **
  14  norm          .10000E-03    60.609       -.50713E-07** at limit **
  15  Prefactor     .10000E-03    33.812       -.18335E-06** at limit **
  16  Prefactor     .10000E-03    18.114        .47067E-06** at limit **
  17  Prefactor     .10008E-03    1045.0       -.54877E-05** at limit **
  18  norm          .10000E-03    38.470        .73768E-06** at limit **
  19  norm          1.4950        7.2526        .24236E-05   -.38856E-04
  20  norm          5.5626        5.7575        .35059E-05    .15967E-03
  21  norm          .10000E-03    51.429        .66181E-06** at limit **
  22  norm          12.856        19.041        .68838E-05    .19800E-03
  23  Prefactor     .10000E-03    60.251        .13182E-06** at limit **
  24  Normalizat    .21535        .73924       -.20270E-03    .43429E-04
  25  Prefactor     .80296        .24285        .26385E-04    .20971E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6179
  norm       = 0.000100001
  Prefactor  = 0.000108684
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 125.775
  Prefactor  = 100.175
  norm       = 10.4211
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100083
  norm       = 0.0001
  norm       = 1.49501
  norm       = 5.56255
  norm       = 0.000100001
  norm       = 12.8563
  Prefactor  = 0.0001
  Normalizat = 0.215349
  Prefactor  = 0.802956
 **********
 **   18 **HESSE 
 **********

 FCN=   804.3582     FROM HESSE     STATUS=OK           411 CALLS     3655 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.618        40.955        .10129E-03   -1.4917    
   2  norm          .10000E-03    81.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10868E-03    7018.0        .18429E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.224        .96841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    31.049        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    319.75        .21085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.402        .13691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     125.77        94.475        .35894E-04   -1.3460    
   9  Prefactor     100.18        1041.9        .20016E-03   -1.3703    
  10  norm          10.421        15.564        .12416E-03   -1.5062    
  11  Prefactor     .10003E-03    493.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    33.186        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.751        .11999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    60.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.812        .16119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.120        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10008E-03    1051.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    38.560        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4950        6.9455        .13185E-03   -1.5463    
  20  norm          5.5626        5.7035        .56097E-04   -1.5236    
  21  norm          .10000E-03    51.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.856        19.080        .11163E-03   -1.4991    
  23  Prefactor     .10000E-03    60.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .21535        .74401        .84868E-03   -1.2831    
  25  Prefactor     .80296        .24552        .14701E-03   -.99619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62776e-09
Minuit parameter uncertainties:
  1  41.029
  2  0.000480737
  3  0.405704
  4  2.14325e-05
  5  0.000512537
  6  0.00580632
  7  3.34369e-05
  8  94.5888
  9  661.541
  10  15.5697
  11  0.00798994
  12  8.82492e-05
  13  5.85014e-05
  14  0.000193462
  15  2.16755e-05
  16  3.04445e-05
  17  0.0189713
  18  0.000192749
  19  6.44572
  20  5.70401
  21  0.000395357
  22  19.0887
  23  8.57258e-05
  24  0.783263
  25  0.245856
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.042e+01  1.557e+01  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:  8.030e-01  2.459e-01  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:  2.153e-01  7.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 1.46e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/594889/likelihoodResults_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 804.354862878
delta logL = 0.00335427052357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 804.354825835
delta logL = 0.00339131413455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.420       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2026       1.0000          .0000       5.0000    
     3 'Normalizat'    .22023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80203       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=   804.3548     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      198 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.252        15.210        .31031E-02    .12270E-04
   2  alpha         2.1985        1.2420        .33746       -.42252E-05
   3  Normalizat    .22133        .82218        .19180        .95981E-05
   4  Prefactor     .80192        .27993        .33288E-01   -.35224E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2524
  alpha      = 2.19849
  Normalizat = 0.221334
  Prefactor  = 0.801923
 **********
 **   18 **HESSE 
 **********

 FCN=   804.3548     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.252        14.876        .12413E-03   -1.5067    
   2  alpha         2.1985        1.2962        .13903E-01   -.12090    
   3  Normalizat    .22133        .67450        .83804E-03   -1.2789    
   4  Prefactor     .80192        .22770        .14710E-03   -.99657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50949e-12
Minuit parameter uncertainties:
  1  14.881
  2  1.36381
  3  0.702084
  4  0.227972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594889': 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) = 804.354763111
delta logL = 0.00345403809513

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.025e+01  1.488e+01  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.198e+00  1.364e+00  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.019e-01  2.280e-01  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:  2.213e-01  7.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
Ra Dec: 114.820 1.622

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/594889/cmap_HighResolution_630979201_631238401_4FGL_J0739.2+0137_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-04', job_status='DONE', photon_flux_upper_limit='1.46e-06', time_completed='2021-08-27 20:46:02.433496', job_id='594889', GAL2='0.80', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1630122362.43', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.45e-03', ts2='0.91', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1511' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:46:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 594889: <4FGL_J0739.2+0137_daily_bin1511> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1511 114.82 1.6216 630979201 631238401 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 :                                   388.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            626 sec.

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

