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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1581
RA = 114.82, Dec = 1.6216
tmin = 649123201, tmax = 649382401
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='596251', job_status='RUN', time_executed='2021-08-27 20:44:01.708914', time_epoch_executed='1630122241.71' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/596251

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/596251/ft1_4FGL_J0739.2+0137_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/596251/ft2_4FGL_J0739.2+0137_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/596251/ft1_4FGL_J0739.2+0137_daily_bin1581.fits outfile=/scratch/kocevski/596251/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1581.fits ra=114.82 dec=1.6216 rad=12.0 tmin=649123201.0 tmax=649382401.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.70
user 2.77
sys 0.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/596251/ft1_filtered_4FGL_J0739.2+0137_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/596251/ft2_4FGL_J0739.2+0137_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/596251/ltcube_649123201_649382401_4FGL_J0739.2+0137_daily_bin1581.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/596251/ft2_4FGL_J0739.2+0137_daily_bin1581.fits
.....................!
real 13.38
user 12.17
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/596251/ft1_filtered_4FGL_J0739.2+0137_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/596251/ft2_4FGL_J0739.2+0137_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/596251/ltcube_649123201_649382401_4FGL_J0739.2+0137_daily_bin1581.fits outfile=/scratch/kocevski/596251/expmap_649123201_649382401_4FGL_J0739.2+0137_daily_bin1581.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/596251/ltcube_649123201_649382401_4FGL_J0739.2+0137_daily_bin1581.fits
.....................!
real 193.72
user 186.04
sys 6.33

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/596251/ft1_filtered_4FGL_J0739.2+0137_daily_bin1581.fits scfile=/scratch/kocevski/596251/ft2_4FGL_J0739.2+0137_daily_bin1581.fits outfile=/scratch/kocevski/596251/cmap_649123201_649382401_4FGL_J0739.2+0137_daily_bin1581.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.23
user 0.38
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/596251/ft1_filtered_4FGL_J0739.2+0137_daily_bin1581.fits scfile=/scratch/kocevski/596251/ft2_4FGL_J0739.2+0137_daily_bin1581.fits outfile=/scratch/kocevski/596251/cmap_HighResolution_649123201_649382401_4FGL_J0739.2+0137_daily_bin1581.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.25
user 0.39
sys 0.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.731       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.826       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.666       1.0000         .10000E-03   10000.    
    12 'norm      '    48.856       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.597       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.662       1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9717       1.0000         .10000E-03   10000.    
    20 'norm      '    7.1784       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59944E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3602.061     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2829 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    13.157       -.32001E-05** at limit **
   2  norm          27.450        1.0108       -.56778E-07   -.59934E-04
   3  Prefactor     .10680E-03    22.918        .10182E-04** at limit **
   4  norm          .10000E-03    9.5366        .23759E-05** at limit **
   5  norm          .10000E-03    1.9069       -.44877E-06** at limit **
   6  Prefactor     .10110E-03    36.028        .16987E-04** at limit **
   7  Prefactor     33.731        1.0324       -.29741E-06   -.52859E-03
   8  Prefactor     25.827        1.0025        .28035E-07    .68497E-04
   9  Prefactor     .10067E-03    12.301       -.42007E-05** at limit **
  10  norm          13.946        7.6039       -.13610E-04   -.92455E-02
  11  Prefactor     18.681        4.4588        .46151E-05   -.25373E-02
  12  norm          48.858        1.0576        .25365E-06    .33866E-04
  13  Prefactor     57.601        1.4403        .65956E-06   -.84904E-03
  14  norm          .10120E-03    37.542        .31215E-04** at limit **
  15  Prefactor     .10066E-03    35.618        .21937E-04** at limit **
  16  Prefactor     .10000E-03    11.408       -.21567E-05** at limit **
  17  Prefactor     12.665        1.2735        .10421E-05   -.45121E-03
  18  norm          .10178E-03    12.485        .11864E-05** at limit **
  19  norm          2.9720        5.4512       -.11517E-05   -.15348E-03
  20  norm          7.1788        3.8234       -.34263E-07    .52654E-05
  21  norm          .12278E-03    114.54       -.51270E-04** at limit **
  22  norm          .10080E-03    12.283       -.40224E-05** at limit **
  23  Prefactor     .41248E-02    89.823       -.87727E-04    .29396E-02
  24  Normalizat    .59275E-01    1.0080        .12269E-03    .16428E-05
  25  Prefactor     1.0613        .10668       -.45945E-06    .22569E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100143
  norm       = 27.4497
  Prefactor  = 0.000106803
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101104
  Prefactor  = 33.7314
  Prefactor  = 25.8271
  Prefactor  = 0.000100675
  norm       = 13.946
  Prefactor  = 18.6813
  norm       = 48.8581
  Prefactor  = 57.6006
  norm       = 0.000101195
  Prefactor  = 0.000100656
  Prefactor  = 0.0001
  Prefactor  = 12.6647
  norm       = 0.000101785
  norm       = 2.97201
  norm       = 7.1788
  norm       = 0.000122779
  norm       = 0.000100795
  Prefactor  = 0.00412485
  Normalizat = 0.0592754
  Prefactor  = 1.06133
 **********
 **   18 **HESSE 
 **********

 FCN=   3602.061     FROM HESSE     STATUS=NOT POSDEF   477 CALLS     3306 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    47.452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.450        26.716        .19116E-02   -1.4660    
   3  Prefactor     .10680E-03    56.450        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.8455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10110E-03    36.954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.731        34.794        .17249E-02   -1.4546    
   8  Prefactor     25.827        51.654        .19707E-02   -1.4691    
   9  Prefactor     .10067E-03    45.178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.946        19.718        .26813E-02   -1.4961    
  11  Prefactor     18.681        235.80        .23176E-02   -1.4843    
  12  norm          48.858        74.527        .14343E-02   -1.4309    
  13  Prefactor     57.601        171.96        .13215E-02   -1.4189    
  14  norm          .10120E-03    81.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10066E-03    91.329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.665        7635.9        .28142E-02   -1.4996    
  18  norm          .10178E-03    43.389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9720        10.984        .58884E-02   -1.5363    
  20  norm          7.1788        7.0299        .37429E-02   -1.5172    
  21  norm          .12278E-03    137.29        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10080E-03    49.352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .41248E-02    988.99        .90712E-02   -1.5695    
  24  Normalizat    .59275E-01    8.8396        .32918       -1.4302    
  25  Prefactor     1.0613        .77443        .39291E-01   -.90712    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.90206e-06
Minuit parameter uncertainties:
  1  0.0052165
  2  26.7274
  3  0.0392309
  4  2.3462e-05
  5  3.31457e-06
  6  0.0127801
  7  34.8151
  8  51.7436
  9  0.0110488
  10  19.7271
  11  133.395
  12  74.6694
  13  173.471
  14  0.0197764
  15  0.0155009
  16  8.3905e-06
  17  604.212
  18  0.0176118
  19  10.9918
  20  7.03074
  21  0.112101
  22  0.0125381
  23  4.05914
  24  2.98953
  25  0.782826
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3602.06081507

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.395e+01  1.973e+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:  1.061e+00  7.828e-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:  5.928e-02  2.990e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.17
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.46e-07 +/- 4.89e-07
Energy Flux (Fixed Index): 1.12e-04 +/- 1.58e-04

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) = 3601.70658736
delta logL = 0.354227711778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3601.68223743
delta logL = 0.378577644549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.097       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8006       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0653       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=   3601.682     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      239 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.101        168.26        .27671E-02    .68759E-04
   2  alpha         2.8009        3.0495        .27700        .13980E-04
   3  Normalizat    .10000E-01    .44554        .34327    ** at limit **
   4  Prefactor     1.0654        .98486E-01    .39087E-01   -.30249E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1006
  alpha      = 2.80088
  Normalizat = 0.01
  Prefactor  = 1.06536
 **********
 **   18 **HESSE 
 **********

 FCN=   3601.682     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.101        7.3593        .10399E-03   -1.4984    
   2  alpha         2.8009        .58474        .11754E-01    .12064    
   3  Normalizat    .10000E-01    6.2611        .19750E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0654        .73191E-01    .13594E-03   -.90581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73454e-10
Minuit parameter uncertainties:
  1  7.35983
  2  0.590291
  3  9.30784e-05
  4  0.0731979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/596251': 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) = 3601.68223625
delta logL = 0.378578822132

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.310e+01  7.360e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.801e+00  5.903e-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:  1.065e+00  7.320e-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.000e-02  9.308e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.12
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.80 +/- 0.59
Photon Flux (Free Index): 4.99e-07 +/- 2.92e-07
Energy Flux (Free Index): 1.12e-04 +/- 5.56e-05

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/596251/cmap_HighResolution_649123201_649382401_4FGL_J0739.2+0137_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-07', energy_flux2='1.12e-04', photon_flux_error='4.89e-07', dlogl='3.79e-01', energy_flux='1.12e-04', photon_flux2='4.99e-07', job_status='DONE', time_completed='2021-08-27 20:52:31.550689', photon_index_error2='0.59', photon_index2='2.80', ts='6.17', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.56e-05', EG='0.06', time_epoch_completed='1630122751.55', return_code='102', job_id='596251', GAL2='1.07', EG2='0.01', return_code2='0', energy_flux_error='1.58e-04', photon_flux_error2='2.92e-07', ts2='7.12', photon_index='2.31' WHERE bin_id='1581' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:52:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 596251: <4FGL_J0739.2+0137_daily_bin1581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1581 114.82 1.6216 649123201 649382401 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 :                                   509.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

