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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin273
RA = 114.82, Dec = 1.6216
tmin = 310089601, tmax = 310348801
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='586144', job_status='RUN', time_executed='2021-08-27 20:06:40.801366', time_epoch_executed='1630120000.8' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586144/ft1_4FGL_J0739.2+0137_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586144/ft2_4FGL_J0739.2+0137_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586144/ft1_4FGL_J0739.2+0137_daily_bin273.fits outfile=/scratch/kocevski/586144/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin273.fits ra=114.82 dec=1.6216 rad=12.0 tmin=310089601.0 tmax=310348801.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.73
user 3.15
sys 0.55

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586144/ft1_filtered_4FGL_J0739.2+0137_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/586144/ft2_4FGL_J0739.2+0137_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/586144/ltcube_310089601_310348801_4FGL_J0739.2+0137_daily_bin273.fits outfile=/scratch/kocevski/586144/expmap_310089601_310348801_4FGL_J0739.2+0137_daily_bin273.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/586144/ltcube_310089601_310348801_4FGL_J0739.2+0137_daily_bin273.fits
.....................!
real 190.27
user 185.12
sys 4.79

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/586144/ft1_filtered_4FGL_J0739.2+0137_daily_bin273.fits scfile=/scratch/kocevski/586144/ft2_4FGL_J0739.2+0137_daily_bin273.fits outfile=/scratch/kocevski/586144/cmap_310089601_310348801_4FGL_J0739.2+0137_daily_bin273.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.89
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586144/ft1_filtered_4FGL_J0739.2+0137_daily_bin273.fits scfile=/scratch/kocevski/586144/ft2_4FGL_J0739.2+0137_daily_bin273.fits outfile=/scratch/kocevski/586144/cmap_HighResolution_310089601_310348801_4FGL_J0739.2+0137_daily_bin273.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.88
user 0.38
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.913       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.498       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7177       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.6509       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2087       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.462       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.279       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2103       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7495       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18991E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90040       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=   8329.178     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2477 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.914        11.507        .27867E-02    .94707E-03
   2  norm          .10001E-03    6.1710        .90712E-02** at limit **
   3  Prefactor     .10000E-03    44.203        .90712E-02** at limit **
   4  norm          .10000E-03    2.0749        .90712E-02** at limit **
   5  norm          .10000E-03    .93419        .33010E-01** at limit **
   6  Prefactor     49.494        47.002        .14250E-02    .13836E-02
   7  Prefactor     8.7201        12.617        .33940E-02   -.15883E-03
   8  Prefactor     .10000E-03    6.0921        .90712E-02** at limit **
   9  Prefactor     .10000E-03    17.625        .90712E-02** at limit **
  10  norm          6.6512        2.3585        .38900E-02    .13936E-03
  11  Prefactor     .10000E-03    9.0585        .90712E-02** at limit **
  12  norm          .10000E-03    14.696        .90712E-02** at limit **
  13  Prefactor     2.2096        3.4663        .69196E-02    .82440E-03
  14  norm          .10000E-03    10.973        .90712E-02** at limit **
  15  Prefactor     17.460        12.699        .23961E-02    .21865E-03
  16  Prefactor     .10000E-03    3.6926        .90712E-02** at limit **
  17  Prefactor     13.275        16.285        .27480E-02   -.15467E-03
  18  norm          .10001E-03    6.0241        .90712E-02** at limit **
  19  norm          .10000E-03    2.1322        .90712E-02** at limit **
  20  norm          2.2109        1.6971        .69169E-02    .24031E-03
  21  norm          .10000E-03    5.7217        .90712E-02** at limit **
  22  norm          5.7498        3.8513        .41877E-02   -.17183E-03
  23  Prefactor     .10000E-03    101.53        .90712E-02** at limit **
  24  Normalizat    1.1848        .19909        .86310E-01   -.22539E-04
  25  Prefactor     .90042        .67716E-01    .34472E-01   -.74113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9138
  norm       = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 49.4943
  Prefactor  = 8.72007
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 6.65117
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 2.20957
  norm       = 0.000100001
  Prefactor  = 17.4599
  Prefactor  = 0.0001
  Prefactor  = 13.2752
  norm       = 0.000100007
  norm       = 0.0001
  norm       = 2.21088
  norm       = 0.0001
  norm       = 5.74979
  Prefactor  = 0.000100002
  Normalizat = 1.18484
  Prefactor  = 0.900419
 **********
 **   18 **HESSE 
 **********

 FCN=   8329.178     FROM HESSE     STATUS=OK           421 CALLS     2898 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.914        11.568        .55734E-03   -1.4989    
   2  norm          .10001E-03    6.1752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0853        .12834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5212        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.494        46.514        .56999E-04   -1.4300    
   7  Prefactor     8.7201        12.607        .13576E-03   -1.5117    
   8  Prefactor     .10000E-03    6.1062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.6512        2.3613        .79249E-04   -1.5192    
  11  Prefactor     .10000E-03    9.0613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2096        3.4510        .20015E-03   -1.5411    
  14  norm          .10000E-03    10.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.460        12.699        .95845E-04   -1.4872    
  16  Prefactor     .10000E-03    3.6999        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.275        16.303        .10992E-03   -1.4979    
  18  norm          .10001E-03    6.0808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1890        .25973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2109        1.6897        .10074E-03   -1.5411    
  21  norm          .10000E-03    5.7250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7498        3.8545        .14187E-03   -1.5228    
  23  Prefactor     .10000E-03    103.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1848        .21023        .38218E-03   -.87073    
  25  Prefactor     .90042        .71975E-01    .15233E-03   -.96126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23292e-08
Minuit parameter uncertainties:
  1  11.5699
  2  0.000534876
  3  9.55815e-05
  4  1.54913e-06
  5  1.98175e-06
  6  46.548
  7  12.6105
  8  0.000183434
  9  0.00029084
  10  2.36132
  11  9.62813e-05
  12  0.000328313
  13  3.45127
  14  0.000150406
  15  12.7014
  16  1.08862e-06
  17  16.3082
  18  0.00040671
  19  4.98043e-06
  20  1.68969
  21  6.10315e-05
  22  3.85464
  23  0.000870402
  24  0.210378
  25  0.0719823
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  6.651e+00  2.361e+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.004e-01  7.198e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.185e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.26
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.65e-07 +/- 5.85e-08
Energy Flux (Fixed Index): 5.33e-05 +/- 1.89e-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) = 8328.46976992
delta logL = 0.708613221761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8328.41083483
delta logL = 0.767548307704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6636       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8139       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89429       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=   8328.411     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6633        2.2359        .42198E-02    .64732E-05
   2  alpha         1.8139        .30462        .26965       -.51909E-04
   3  Normalizat    1.2378        .18555        .84792E-01    .24013E-04
   4  Prefactor     .89430        .64796E-01    .44932E-01   -.41645E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 5.66329
  alpha      = 1.81391
  Normalizat = 1.23779
  Prefactor  = 0.894296
 **********
 **   18 **HESSE 
 **********

 FCN=   8328.411     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6633        2.7406        .81913E-04   -1.5232    
   2  alpha         1.8139        .39950        .11105E-01   -.27800    
   3  Normalizat    1.2378        .19949        .37542E-03   -.85443    
   4  Prefactor     .89430        .68984E-01    .15288E-03   -.96341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37002e-12
Minuit parameter uncertainties:
  1  2.74063
  2  0.401365
  3  0.19961
  4  0.0689903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586144': 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) = 8328.41083482
delta logL = 0.767548321375

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  5.663e+00  2.741e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.814e+00  4.014e-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:  8.943e-01  6.899e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.238e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.62
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.81 +/- 0.40
Photon Flux (Free Index): 1.03e-07 +/- 6.19e-08
Energy Flux (Free Index): 6.66e-05 +/- 3.18e-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/586144/cmap_HighResolution_310089601_310348801_4FGL_J0739.2+0137_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-07', energy_flux2='6.66e-05', photon_flux_error='5.85e-08', dlogl='7.68e-01', energy_flux='5.33e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-27 20:18:33.613664', photon_index_error2='0.40', photon_index2='1.81', ts='22.26', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.18e-05', EG='1.18', time_epoch_completed='1630120713.61', return_code='0', job_id='586144', GAL2='0.89', EG2='1.24', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='6.19e-08', ts2='23.62', photon_index='2.31' WHERE bin_id='273' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:18:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 586144: <4FGL_J0739.2+0137_daily_bin273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin273 114.82 1.6216 310089601 310348801 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 :                                   714.62 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             345.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            784 sec.

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

