/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7404
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1047
RA = 114.82, Dec = 1.6216
tmin = 510710401, tmax = 510969601
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='592102', job_status='RUN', time_executed='2021-08-27 20:26:00.158741', time_epoch_executed='1630121160.16' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592102/ft1_4FGL_J0739.2+0137_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592102/ft2_4FGL_J0739.2+0137_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592102/ft1_4FGL_J0739.2+0137_daily_bin1047.fits outfile=/scratch/kocevski/592102/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1047.fits ra=114.82 dec=1.6216 rad=12.0 tmin=510710401.0 tmax=510969601.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.49
user 3.20
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592102/ft2_4FGL_J0739.2+0137_daily_bin1047.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/592102/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1047.fits evtable="EVENTS" outfile="/scratch/kocevski/592102/ft1_filtered_4FGL_J0739.2+0137_daily_bin1047.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.56
user 0.34
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592102/ft1_filtered_4FGL_J0739.2+0137_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/592102/ft2_4FGL_J0739.2+0137_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/592102/ltcube_510710401_510969601_4FGL_J0739.2+0137_daily_bin1047.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/592102/ft2_4FGL_J0739.2+0137_daily_bin1047.fits
.....................!
real 11.92
user 11.47
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592102/ft1_filtered_4FGL_J0739.2+0137_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/592102/ft2_4FGL_J0739.2+0137_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/592102/ltcube_510710401_510969601_4FGL_J0739.2+0137_daily_bin1047.fits outfile=/scratch/kocevski/592102/expmap_510710401_510969601_4FGL_J0739.2+0137_daily_bin1047.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/592102/ltcube_510710401_510969601_4FGL_J0739.2+0137_daily_bin1047.fits
.....................!
real 189.60
user 185.40
sys 3.80

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/592102/ft1_filtered_4FGL_J0739.2+0137_daily_bin1047.fits scfile=/scratch/kocevski/592102/ft2_4FGL_J0739.2+0137_daily_bin1047.fits outfile=/scratch/kocevski/592102/cmap_510710401_510969601_4FGL_J0739.2+0137_daily_bin1047.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.60
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592102/ft1_filtered_4FGL_J0739.2+0137_daily_bin1047.fits scfile=/scratch/kocevski/592102/ft2_4FGL_J0739.2+0137_daily_bin1047.fits outfile=/scratch/kocevski/592102/cmap_HighResolution_510710401_510969601_4FGL_J0739.2+0137_daily_bin1047.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.60
user 0.38
sys 0.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3054       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1247       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10951E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1712       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4261       1.0000         .10000E-03   10000.    
    20 'norm      '    .95658       1.0000         .10000E-03   10000.    
    21 'norm      '    .10549E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.3928       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96596       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98810       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11671.07     FROM MIGRAD    STATUS=CONVERGED   1046 CALLS     3007 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0267        .18142E-02** at limit **
   2  norm          .10000E-03    11.992        .18142E-02** at limit **
   3  Prefactor     .10000E-03    92.484        .18142E-02** at limit **
   4  norm          .10000E-03    2.8172        .17570E-02** at limit **
   5  norm          3.5735        2.1460        .11424E-03   -.33080E-03
   6  Prefactor     43.961        40.183        .60461E-04    .45128E-05
   7  Prefactor     .10000E-03    8.7978        .36285E-03** at limit **
   8  Prefactor     1.3052        11.102        .19317E-02    .23675E-03
   9  Prefactor     .10000E-03    8.6882        .18142E-02** at limit **
  10  norm          4.1235        1.8899        .95426E-04   -.55970E-03
  11  Prefactor     .10000E-03    30.433        .18142E-02** at limit **
  12  norm          2.5368        8.7250        .12820E-02    .69966E-04
  13  Prefactor     .10000E-03    6.0764        .29872E-02** at limit **
  14  norm          5.1578        28.055        .17678E-03    .13286E-03
  15  Prefactor     .31463        15.682        .91173E-01    .42441E-03
  16  Prefactor     .10000E-03    4.1379        .18142E-02** at limit **
  17  Prefactor     .10000E-03    17.567        .18142E-02** at limit **
  18  norm          .10000E-03    15.900        .18142E-02** at limit **
  19  norm          1.4251        2.4354        .20579E-03   -.60115E-03
  20  norm          .95652        1.5566        .16258E-03    .16013E-03
  21  norm          .10000E-03    48.105        .18142E-02** at limit **
  22  norm          7.3918        3.8147        .14612E-03   -.53026E-03
  23  Prefactor     .10002E-03    82.614        .18142E-02** at limit **
  24  Normalizat    .96644        .18788        .42855E-03   -.53873E-03
  25  Prefactor     .98801        .60226E-01    .14708E-03   -.26951E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 3.57353
  Prefactor  = 43.9609
  Prefactor  = 0.0001
  Prefactor  = 1.30515
  Prefactor  = 0.0001
  norm       = 4.12353
  Prefactor  = 0.0001
  norm       = 2.53678
  Prefactor  = 0.000100003
  norm       = 5.15781
  Prefactor  = 0.314632
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.42512
  norm       = 0.956515
  norm       = 0.0001
  norm       = 7.39179
  Prefactor  = 0.000100018
  Normalizat = 0.966441
  Prefactor  = 0.988009
 **********
 **   18 **HESSE 
 **********

 FCN=   11671.07     FROM HESSE     STATUS=OK           415 CALLS     3422 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    92.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8186        .35139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5735        2.1457        .45695E-05   -1.5330    
   6  Prefactor     43.961        40.181        .12092E-04   -1.4381    
   7  Prefactor     .10000E-03    8.7983        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3052        11.090        .77267E-04   -1.5479    
   9  Prefactor     .10000E-03    8.6884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1235        1.8898        .38170E-05   -1.5302    
  11  Prefactor     .10000E-03    30.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5368        8.7235        .51281E-04   -1.5389    
  13  Prefactor     .10000E-03    6.1241        .59745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1578        27.491        .70713E-05   -1.5254    
  15  Prefactor     .31463        14.303        .95617E-01   -1.5596    
  16  Prefactor     .10000E-03    4.1399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    15.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4251        2.4343        .82318E-05   -1.5469    
  20  norm          .95652        1.5558        .65032E-05   -1.5512    
  21  norm          .10000E-03    48.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.3918        3.8145        .29223E-04   -1.5164    
  23  Prefactor     .10002E-03    82.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96644        .18757        .17142E-04   -.94163    
  25  Prefactor     .98801        .60198E-01    .29416E-04   -.93130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35066e-09
Minuit parameter uncertainties:
  1  2.69873e-05
  2  4.57657e-05
  3  0.000571667
  4  3.9552e-05
  5  2.14579
  6  40.2059
  7  4.19652e-05
  8  7.61058
  9  0.000125507
  10  1.8898
  11  0.000163782
  12  8.7279
  13  0.000265019
  14  23.8322
  15  4.24319
  16  1.86907e-05
  17  0.0002661
  18  0.000100329
  19  2.43443
  20  1.55592
  21  4.78229e-05
  22  3.81464
  23  0.00246003
  24  0.187701
  25  0.0602017
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.124e+00  1.890e+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.880e-01  6.020e-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:  9.664e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.65
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 4.68e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.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) = 11671.0693575
delta logL = 0.00265023409156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11671.069243
delta logL = 0.00276467300682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1359       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2797       1.0000          .0000       5.0000    
     3 'Normalizat'    .96858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98765       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11671.07     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      245 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1358        1.9037        .96050E-04   -.60317E-03
   2  alpha         2.2797        .44879        .15633E-01   -.14016E-04
   3  Normalizat    .96858        .17352        .42814E-03   -.26554E-04
   4  Prefactor     .98765        .59222E-01    .14710E-03   -.35241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13583
  alpha      = 2.27966
  Normalizat = 0.968582
  Prefactor  = 0.987654
 **********
 **   18 **HESSE 
 **********

 FCN=   11671.07     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1358        1.8989        .38420E-05   -1.5301    
   2  alpha         2.2797        .44751        .62533E-03   -.88249E-01
   3  Normalizat    .96858        .17362        .17126E-04   -.94091    
   4  Prefactor     .98765        .59234E-01    .58842E-05   -.93142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37555e-11
Minuit parameter uncertainties:
  1  1.89888
  2  0.449954
  3  0.17372
  4  0.0592383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592102': 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) = 11671.069243
delta logL = 0.00276467331605

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.136e+00  1.899e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.280e+00  4.500e-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.877e-01  5.924e-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:  9.686e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.66
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.28 +/- 0.45
Photon Flux (Free Index): 9.99e-08 +/- 5.54e-08
Energy Flux (Free Index): 3.34e-05 +/- 1.62e-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/592102/cmap_HighResolution_510710401_510969601_4FGL_J0739.2+0137_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.34e-05', photon_flux_error='4.68e-08', dlogl='2.76e-03', energy_flux='3.30e-05', photon_flux2='9.99e-08', job_status='DONE', time_completed='2021-08-27 20:41:14.249542', photon_index_error2='0.45', photon_index2='2.28', ts='9.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.97', time_epoch_completed='1630122074.25', return_code='0', job_id='592102', GAL2='0.99', EG2='0.97', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.54e-08', ts2='9.66', photon_index='2.31' WHERE bin_id='1047' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:41:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 592102: <4FGL_J0739.2+0137_daily_bin1047> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1047> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 20:25:35 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:25:42 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:25:42 2021
Terminated at Fri Aug 27 20:41:15 2021
Results reported at Fri Aug 27 20:41:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1047 114.82 1.6216 510710401 510969601 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 :                                   908.15 sec.
    Max Memory :                                 850 MB
    Average Memory :                             356.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            940 sec.

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

