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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin237
RA = 114.82, Dec = 1.6216
tmin = 300758401, tmax = 301017601
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='586093', job_status='RUN', time_executed='2021-08-27 20:07:01.588431', time_epoch_executed='1630120021.59' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586093/ft1_4FGL_J0739.2+0137_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586093/ft2_4FGL_J0739.2+0137_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586093/ft1_4FGL_J0739.2+0137_daily_bin237.fits outfile=/scratch/kocevski/586093/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin237.fits ra=114.82 dec=1.6216 rad=12.0 tmin=300758401.0 tmax=301017601.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 5.47
user 3.29
sys 2.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586093/ft1_filtered_4FGL_J0739.2+0137_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/586093/ft2_4FGL_J0739.2+0137_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/586093/ltcube_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.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/586093/ft2_4FGL_J0739.2+0137_daily_bin237.fits
.....................!
real 14.10
user 11.59
sys 2.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586093/ft1_filtered_4FGL_J0739.2+0137_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/586093/ft2_4FGL_J0739.2+0137_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/586093/ltcube_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.fits outfile=/scratch/kocevski/586093/expmap_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.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/586093/ltcube_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.fits
.....................!
real 192.03
user 185.24
sys 6.34

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/586093/ft1_filtered_4FGL_J0739.2+0137_daily_bin237.fits scfile=/scratch/kocevski/586093/ft2_4FGL_J0739.2+0137_daily_bin237.fits outfile=/scratch/kocevski/586093/cmap_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.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 2.41
user 0.37
sys 2.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586093/ft1_filtered_4FGL_J0739.2+0137_daily_bin237.fits scfile=/scratch/kocevski/586093/ft2_4FGL_J0739.2+0137_daily_bin237.fits outfile=/scratch/kocevski/586093/cmap_HighResolution_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.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 2.45
user 0.38
sys 2.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4926       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14427E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.560       1.0000         .10000E-03   10000.    
    10 'norm      '    .13325E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .72345E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2480       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.170       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3161       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0192       1.0000         .10000E-03   10000.    
    21 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9970       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89980       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0991       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=   8055.147     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2921 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.761        .11071E-06** at limit **
   2  norm          .10000E-03    8.3401       -.33422E-07** at limit **
   3  Prefactor     .10000E-03    29.527       -.15182E-06** at limit **
   4  norm          .10000E-03    2.7241        .14291E-06** at limit **
   5  norm          1.4924        1.4611        .23769E-08   -.71687E-04
   6  Prefactor     21.152        36.142        .73207E-06    .52256E-04
   7  Prefactor     .10000E-03    14.699        .22323E-05** at limit **
   8  Prefactor     .10000E-03    11.249       -.86949E-07** at limit **
   9  Prefactor     74.568        42.865       -.70074E-06    .28425E-04
  10  norm          .10000E-03    .94370       -.29466E-06** at limit **
  11  Prefactor     .10000E-03    9.6472        .45807E-06** at limit **
  12  norm          .10000E-03    11.180       -.18938E-06** at limit **
  13  Prefactor     .10000E-03    1.5602       -.12552E-07** at limit **
  14  norm          .10004E-03    66.865       -.17787E-04** at limit **
  15  Prefactor     10.639        12.137        .10699E-05    .34448E-03
  16  Prefactor     1.2470        3.2568        .26062E-05   -.73362E-03
  17  Prefactor     32.192        43.040       -.11425E-05    .17403E-04
  18  norm          4.3170        10.559       -.48973E-06   -.66575E-04
  19  norm          .10000E-03    .82387        .50997E-07** at limit **
  20  norm          2.0189        1.8143       -.82361E-07   -.77843E-04
  21  norm          .10000E-03    24.202       -.59105E-05** at limit **
  22  norm          1.9970        2.7482       -.33942E-06    .49607E-04
  23  Prefactor     .10000E-03    28.248       -.18721E-05** at limit **
  24  Normalizat    .89977        .22424        .53032E-05    .71673E-04
  25  Prefactor     1.0992        .75017E-01   -.13359E-05    .70222E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.49242
  Prefactor  = 21.1515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.5675
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100039
  Prefactor  = 10.6389
  Prefactor  = 1.24703
  Prefactor  = 32.1924
  norm       = 4.31702
  norm       = 0.0001
  norm       = 2.0189
  norm       = 0.0001
  norm       = 1.99697
  Prefactor  = 0.0001
  Normalizat = 0.899774
  Prefactor  = 1.09916
 **********
 **   18 **HESSE 
 **********

 FCN=   8055.147     FROM HESSE     STATUS=OK           425 CALLS     3346 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.3455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7691        .14463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4924        1.4431        .10314E-03   -1.5464    
   6  Prefactor     21.152        36.116        .87074E-04   -1.4788    
   7  Prefactor     .10000E-03    15.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     74.568        42.622        .46499E-04   -1.3979    
  10  norm          .10000E-03    3.6932        .16546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5828        .10938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10004E-03    79.426        .60687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.639        11.534        .61388E-03   -1.5056    
  16  Prefactor     1.2470        6.8369        .20030E-02   -1.5485    
  17  Prefactor     32.192        43.149        .70646E-04   -1.4573    
  18  norm          4.3170        10.555        .96953E-03   -1.5292    
  19  norm          .10000E-03    .82563        .79521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0189        1.8043        .11083E-03   -1.5424    
  21  norm          .10000E-03    24.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9970        2.7302        .16869E-03   -1.5425    
  23  Prefactor     .10000E-03    28.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89977        .22824        .44019E-03   -.96468    
  25  Prefactor     1.0992        .76320E-01    .14853E-03   -.89494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27822e-09
Minuit parameter uncertainties:
  1  0.000147748
  2  7.85101e-06
  3  0.00010484
  4  5.35622e-06
  5  1.44316
  6  36.1533
  7  4.16983e-05
  8  7.44294e-05
  9  42.6396
  10  5.43957e-06
  11  6.97548e-05
  12  5.77621e-05
  13  1.68115e-05
  14  0.00352148
  15  11.5368
  16  5.84062
  17  43.1908
  18  10.56
  19  1.70281e-06
  20  1.80434
  21  9.63345e-05
  22  2.73033
  23  0.000164258
  24  0.228481
  25  0.0763279
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.000e-04  5.440e-06  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.099e+00  7.633e-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.998e-01  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586093/likelihoodResults_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.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): 102
logL (Free Index) = 8055.14874082
delta logL = -0.00129380217822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8055.14745085
delta logL = -3.8300486267e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12671E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3942       1.0000          .0000       5.0000    
     3 'Normalizat'    .90040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0990       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=   8055.107     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      292 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17253        .46820        .19640E-01   -.25766E-02
   2  alpha         3.8341        3.0697        .41198       -.52265E-04
   3  Normalizat    .88214        .19484        .10021        .35613E-04
   4  Prefactor     1.1012        .71516E-01    .37624E-01    .13026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.17253
  alpha      = 3.83413
  Normalizat = 0.882142
  Prefactor  = 1.10115
 **********
 **   18 **HESSE 
 **********

 FCN=   8055.107     FROM HESSE     STATUS=OK            35 CALLS      327 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17253        .66134        .98662E-03   -1.5791    
   2  alpha         3.8341        3.0271        .99555E-01    15.145    
   3  Normalizat    .88214        .21100        .44413E-03   -.97090    
   4  Prefactor     1.1012        .75153E-01    .14841E-03   -.89430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21095e-10
Minuit parameter uncertainties:
  1  0.661372
  2  2.76529
  3  0.211195
  4  0.0751599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586093': 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) = 8055.10733689
delta logL = 0.0401101276266

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.725e-01  6.614e-01  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  3.834e+00  2.765e+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:  1.101e+00  7.516e-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.821e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 114.820 1.622

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/586093/cmap_HighResolution_300758401_301017601_4FGL_J0739.2+0137_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-08-27 20:21:08.379187', job_id='586093', GAL2='1.10', fit_tolerance='1e-08', EG2='0.88', EG='0.90', time_epoch_completed='1630120868.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.01e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='237' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:21:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 586093: <4FGL_J0739.2+0137_daily_bin237> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin237 114.82 1.6216 300758401 301017601 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 :                                   874.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

