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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1477
RA = 114.82, Dec = 1.6216
tmin = 622166401, tmax = 622425601
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='594836', job_status='RUN', time_executed='2021-08-27 20:35:56.982033', time_epoch_executed='1630121756.98' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594836/ft1_4FGL_J0739.2+0137_daily_bin1477.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594836/ft2_4FGL_J0739.2+0137_daily_bin1477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594836/ft1_4FGL_J0739.2+0137_daily_bin1477.fits outfile=/scratch/kocevski/594836/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1477.fits ra=114.82 dec=1.6216 rad=12.0 tmin=622166401.0 tmax=622425601.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 4.18
user 3.44
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594836/ft2_4FGL_J0739.2+0137_daily_bin1477.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/594836/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1477.fits evtable="EVENTS" outfile="/scratch/kocevski/594836/ft1_filtered_4FGL_J0739.2+0137_daily_bin1477.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.06
user 0.35
sys 0.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594836/ft1_filtered_4FGL_J0739.2+0137_daily_bin1477.fits" evtable="EVENTS" scfile=/scratch/kocevski/594836/ft2_4FGL_J0739.2+0137_daily_bin1477.fits sctable="SC_DATA" outfile=/scratch/kocevski/594836/ltcube_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.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/594836/ft2_4FGL_J0739.2+0137_daily_bin1477.fits
.....................!
real 12.40
user 11.51
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594836/ft1_filtered_4FGL_J0739.2+0137_daily_bin1477.fits evtable="EVENTS" scfile=/scratch/kocevski/594836/ft2_4FGL_J0739.2+0137_daily_bin1477.fits sctable="SC_DATA" expcube=/scratch/kocevski/594836/ltcube_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.fits outfile=/scratch/kocevski/594836/expmap_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.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/594836/ltcube_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.fits
.....................!
real 190.37
user 185.56
sys 4.43

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/594836/ft1_filtered_4FGL_J0739.2+0137_daily_bin1477.fits scfile=/scratch/kocevski/594836/ft2_4FGL_J0739.2+0137_daily_bin1477.fits outfile=/scratch/kocevski/594836/cmap_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.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.96
user 0.37
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594836/ft1_filtered_4FGL_J0739.2+0137_daily_bin1477.fits scfile=/scratch/kocevski/594836/ft2_4FGL_J0739.2+0137_daily_bin1477.fits outfile=/scratch/kocevski/594836/cmap_HighResolution_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.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.97
user 0.39
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8623       1.0000         .10000E-03   10000.    
     2 'norm      '    14.984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5790       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1127       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .92044       1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.148       1.0000         .10000E-03   10000.    
    12 'norm      '    5.5447       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6607       1.0000         .10000E-03   10000.    
    14 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8222       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6809       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2273       1.0000         .10000E-03   10000.    
    19 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7450       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1759       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70735       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1030       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=   9354.038     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2992 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8613        10.828       -.71494E-07   -.45664E-04
   2  norm          14.987        25.362       -.61909E-06    .99690E-05
   3  Prefactor     .10000E-03    38.579        .16009E-05** at limit **
   4  norm          1.5788        3.4073       -.70899E-06   -.10382E-02
   5  norm          3.1127        2.0573       -.29261E-07   -.47789E-03
   6  Prefactor     .10000E-03    20.405        .10383E-04** at limit **
   7  Prefactor     .10000E-03    15.786       -.14500E-05** at limit **
   8  Prefactor     .10000E-03    7.0689       -.74135E-06** at limit **
   9  Prefactor     .10000E-03    189.35        .81873E-06** at limit **
  10  norm          .91846        1.9493       -.10869E-05   -.18955E-02
  11  Prefactor     49.169        43.250        .98112E-05   -.18927E-03
  12  norm          5.5437        19.720        .60771E-06   -.49075E-04
  13  Prefactor     3.6605        3.2414       -.88108E-07   -.37621E-03
  14  norm          .10000E-03    22.011       -.97864E-05** at limit **
  15  Prefactor     3.8221        8.7480       -.56287E-06    .86727E-04
  16  Prefactor     5.6811        5.3186       -.19901E-05    .43302E-03
  17  Prefactor     .10000E-03    7.4198        .72521E-06** at limit **
  18  norm          7.2273        9.6712       -.16189E-06   -.55273E-04
  19  norm          .10000E-03    1.1364        .49131E-07** at limit **
  20  norm          2.7452        1.6746       -.19427E-08   -.14396E-03
  21  norm          .10000E-03    5.9096        .90737E-07** at limit **
  22  norm          4.1761        3.0799        .31439E-07    .99724E-04
  23  Prefactor     .10000E-03    8.7389       -.61440E-07** at limit **
  24  Normalizat    .70736        .20485        .11977E-06    .54318E-04
  25  Prefactor     1.1030        .72534E-01   -.41415E-07    .24144E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.86133
  norm       = 14.9866
  Prefactor  = 0.0001
  norm       = 1.57884
  norm       = 3.11269
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.918458
  Prefactor  = 49.169
  norm       = 5.54368
  Prefactor  = 3.66046
  norm       = 0.000100003
  Prefactor  = 3.82206
  Prefactor  = 5.68106
  Prefactor  = 0.0001
  norm       = 7.22726
  norm       = 0.0001
  norm       = 2.74518
  norm       = 0.0001
  norm       = 4.17608
  Prefactor  = 0.0001
  Normalizat = 0.707363
  Prefactor  = 1.10303
 **********
 **   18 **HESSE 
 **********

 FCN=   9354.038     FROM HESSE     STATUS=OK           429 CALLS     3421 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8613        10.879        .12760E-03   -1.5080    
   2  norm          14.987        25.482        .10347E-03   -1.4934    
   3  Prefactor     .10000E-03    38.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5788        3.4434        .25683E-03   -1.5457    
   5  norm          3.1127        2.0499        .10690E-03   -1.5355    
   6  Prefactor     .10000E-03    20.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    197.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .91846        2.0163        .18658E-03   -1.5516    
  11  Prefactor     49.169        42.777        .57201E-04   -1.4304    
  12  norm          5.5437        19.715        .17062E-03   -1.5237    
  13  Prefactor     3.6605        3.2424        .15496E-03   -1.5325    
  14  norm          .10000E-03    21.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8221        8.6962        .20644E-03   -1.5317    
  16  Prefactor     5.6811        5.2802        .16853E-03   -1.5231    
  17  Prefactor     .10000E-03    7.4228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2273        9.6684        .14920E-03   -1.5170    
  19  norm          .10000E-03    3.0868        .19876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7452        1.6592        .93802E-04   -1.5377    
  21  norm          .10000E-03    5.9194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1761        3.0810        .14109E-03   -1.5299    
  23  Prefactor     .10000E-03    8.7438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .70736        .21054        .47980E-03   -1.0360    
  25  Prefactor     1.1030        .76731E-01    .14658E-03   -.89370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13451e-09
Minuit parameter uncertainties:
  1  10.8807
  2  25.5004
  3  7.94893e-05
  4  3.44384
  5  2.04996
  6  0.000377901
  7  8.3211e-05
  8  1.10733e-05
  9  0.000749812
  10  2.0164
  11  42.8035
  12  19.7376
  13  3.24254
  14  0.000520503
  15  8.69902
  16  5.2806
  17  1.55957e-05
  18  9.67053
  19  5.06021e-06
  20  1.65921
  21  1.41571e-06
  22  3.08111
  23  2.39583e-06
  24  0.210779
  25  0.0767392
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  9.185e-01  2.016e+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:  1.103e+00  7.674e-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:  7.074e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/594836/likelihoodResults_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9351.85098668
delta logL = 2.1866181486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9351.7965305
delta logL = 2.24107433186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23654       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9949       1.0000          .0000       5.0000    
     3 'Normalizat'    .61413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1187       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=   9351.797     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      343 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23505        .20485        .26344E-03   -.90746E-03
   2  alpha         5.0000        3.2899        .50000    ** at limit **
   3  Normalizat    .61357        .19381        .51159E-03   -.15791E-03
   4  Prefactor     1.1188        .71264E-01    .14556E-03   -.22432E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.235047
  alpha      = 5
  Normalizat = 0.613566
  Prefactor  = 1.11884
 **********
 **   18 **HESSE 
 **********

 FCN=   9351.797     FROM HESSE     STATUS=OK            31 CALLS      374 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23505        .19326        .10538E-04   -1.5611    
   2  alpha         5.0000        3.2128        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .61357        .19395        .20464E-04   -1.0741    
   4  Prefactor     1.1188        .71277E-01    .58223E-05   -.88867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14344e-10
Minuit parameter uncertainties:
  1  0.193258
  2  0.000195195
  3  0.194165
  4  0.0712831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594836': 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) = 9351.79650152
delta logL = 2.24110331199

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.350e-01  1.933e-01  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  5.000e+00  1.952e-04  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.119e+00  7.128e-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:  6.136e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 114.820 1.622
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.18e-07 +/- 9.63e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.30e-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/594836/cmap_HighResolution_622166401_622425601_4FGL_J0739.2+0137_daily_bin1477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-05', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='2.24e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-27 20:51:16.451734', photon_index_error2='0.00', photon_index2='5.00', ts='0.24', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.30e-05', EG='0.71', time_epoch_completed='1630122676.45', return_code='0', job_id='594836', GAL2='1.12', EG2='0.61', return_code2='0', photon_flux_error2='9.63e-08', ts2='5.06', photon_index='2.31' WHERE bin_id='1477' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:51:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 594836: <4FGL_J0739.2+0137_daily_bin1477> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1477> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 20:35:33 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 20:35:34 2021
Terminated at Fri Aug 27 20:51:17 2021
Results reported at Fri Aug 27 20:51:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1477 114.82 1.6216 622166401 622425601 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 :                                   919.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

