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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin430
RA = 114.82, Dec = 1.6216
tmin = 350784001, tmax = 351043201
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='587700', job_status='RUN', time_executed='2021-08-27 20:10:55.965738', time_epoch_executed='1630120255.97' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587700/ft1_4FGL_J0739.2+0137_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587700/ft1_4FGL_J0739.2+0137_daily_bin430.fits outfile=/scratch/kocevski/587700/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin430.fits ra=114.82 dec=1.6216 rad=12.0 tmin=350784001.0 tmax=351043201.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.35
user 3.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587700/ft1_filtered_4FGL_J0739.2+0137_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/587700/ltcube_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.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/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits
.....................!
real 12.07
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587700/ft1_filtered_4FGL_J0739.2+0137_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/587700/ltcube_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.fits outfile=/scratch/kocevski/587700/expmap_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.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/587700/ltcube_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.fits
.....................!
real 191.93
user 186.03
sys 5.49

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/587700/ft1_filtered_4FGL_J0739.2+0137_daily_bin430.fits scfile=/scratch/kocevski/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits outfile=/scratch/kocevski/587700/cmap_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587700/ft1_filtered_4FGL_J0739.2+0137_daily_bin430.fits scfile=/scratch/kocevski/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits outfile=/scratch/kocevski/587700/cmap_HighResolution_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/587700/ft1_filtered_4FGL_J0739.2+0137_daily_bin430.fits', '/scratch/kocevski/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits', expMap='/scratch/kocevski/587700/expmap_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.fits', expCube='/scratch/kocevski/587700/ltcube_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/587700/Model_4FGL_J0739.2+0137_daily_bin430.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/587700/ft1_filtered_4FGL_J0739.2+0137_daily_bin430.fits
Spacecraft file(s): /scratch/kocevski/587700/ft2_4FGL_J0739.2+0137_daily_bin430.fits
Exposure map: /scratch/kocevski/587700/expmap_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.fits
Exposure cube: /scratch/kocevski/587700/ltcube_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/587700/Model_4FGL_J0739.2+0137_daily_bin430.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.782       1.0000         .10000E-03   10000.    
     2 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .72656       1.0000         .10000E-03   10000.    
     5 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.323       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11216E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .37562E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7267       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.219       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.261       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.575       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13677E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9116       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0007       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98035       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=   8666.671     FROM MIGRAD    STATUS=CONVERGED   1058 CALLS     3022 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.772        12.759        .94979E-04   -.13645E-04
   2  norm          .10000E-03    11.804        .18142E-02** at limit **
   3  Prefactor     .10000E-03    184.48        .18142E-02** at limit **
   4  norm          .72774        6.3767        .44093E-03    .96430E-05
   5  norm          .10000E-03    1.8957        .17177E-02** at limit **
   6  Prefactor     27.335        35.173        .76642E-04    .20470E-04
   7  Prefactor     3.2245        6.5808        .22559E-03    .72571E-05
   8  Prefactor     .10000E-03    6.2193        .18142E-02** at limit **
   9  Prefactor     .10000E-03    44.488        .18142E-02** at limit **
  10  norm          2.3320        2.0978        .12149E-03    .50904E-04
  11  Prefactor     .10000E-03    14.133        .18142E-02** at limit **
  12  norm          .10000E-03    18.026        .11270    ** at limit **
  13  Prefactor     3.7278        3.6455        .16745E-03    .16701E-04
  14  norm          .10000E-03    10.137        .18142E-02** at limit **
  15  Prefactor     28.219        16.381        .75417E-04    .72357E-05
  16  Prefactor     15.261        9.9564        .10253E-03    .14415E-04
  17  Prefactor     .10000E-03    9.5854        .18142E-02** at limit **
  18  norm          26.575        14.594        .77710E-04    .13752E-04
  19  norm          .10000E-03    1.0306        .91884E-03** at limit **
  20  norm          .10000E-03    .80456        .12998E-02** at limit **
  21  norm          .10000E-03    52.144        .36285E-03** at limit **
  22  norm          .10000E-03    3.5462        .16924E-02** at limit **
  23  Prefactor     9.9421        38.714        .12728E-03    .10897E-04
  24  Normalizat    1.0007        .22296        .42744E-03    .49205E-04
  25  Prefactor     .98037        .73647E-01    .14991E-03    .17291E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7716
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.72774
  norm       = 0.0001
  Prefactor  = 27.3346
  Prefactor  = 3.22449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33204
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.72778
  norm       = 0.0001
  Prefactor  = 28.2186
  Prefactor  = 15.261
  Prefactor  = 0.0001
  norm       = 26.5746
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.94213
  Normalizat = 1.00067
  Prefactor  = 0.980368
 **********
 **   18 **HESSE 
 **********

 FCN=   8666.671     FROM HESSE     STATUS=OK           411 CALLS     3433 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.772        12.759        .37992E-05   -1.4865    
   2  norm          .10000E-03    11.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    184.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .72774        6.3701        .17637E-04   -1.5537    
   5  norm          .10000E-03    1.9038        .34354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.335        35.181        .30657E-05   -1.4662    
   7  Prefactor     3.2245        6.5806        .90234E-05   -1.5349    
   8  Prefactor     .10000E-03    6.2199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3320        2.0976        .48598E-05   -1.5403    
  11  Prefactor     .10000E-03    14.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    17.405        .11573       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7278        3.6453        .66981E-05   -1.5322    
  14  norm          .10000E-03    10.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.219        16.381        .30167E-05   -1.4645    
  16  Prefactor     15.261        9.9562        .41011E-05   -1.4926    
  17  Prefactor     .10000E-03    9.5855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.575        14.595        .31084E-05   -1.4676    
  19  norm          .10000E-03    1.0307        .18377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .80580        .25997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    52.146        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.5489        .33848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9421        38.686        .50912E-05   -1.5077    
  24  Normalizat    1.0007        .22298        .17097E-04   -.93008    
  25  Prefactor     .98037        .73644E-01    .59964E-05   -.93387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69774e-11
Minuit parameter uncertainties:
  1  12.7608
  2  9.67264e-06
  3  0.0002886
  4  4.30649
  5  2.2042e-05
  6  35.2078
  7  6.58209
  8  3.25182e-06
  9  2.13773e-05
  10  2.09769
  11  3.33945e-06
  12  7.66273e-06
  13  3.64555
  14  2.39717e-06
  15  16.3841
  16  9.95726
  17  2.48447e-06
  18  14.5971
  19  4.76001e-07
  20  6.3588e-07
  21  0.000117471
  22  2.31831e-06
  23  38.784
  24  0.223188
  25  0.0736512
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.332e+00  2.098e+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.804e-01  7.365e-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.001e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.78e-08 +/- 5.19e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.68e-05

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

Saving results to:
/scratch/kocevski/587700/likelihoodResults_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.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) = 8666.20545128
delta logL = 0.465219237602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8666.19043075
delta logL = 0.480239771998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9451       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6408       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97735       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=   8666.190     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9443        1.6456        .74407E-02    .40279E-03
   2  alpha         1.6408        .39890        .43282       -.56261E-04
   3  Normalizat    1.0220        .18763        .95547E-01    .75242E-05
   4  Prefactor     .97736        .65336E-01    .33961E-01   -.96243E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94428
  alpha      = 1.64077
  Normalizat = 1.02203
  Prefactor  = 0.977356
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9443        2.0843        .10608E-03   -1.5429    
   2  alpha         1.6408        .62457        .15463E-01   -.35085    
   3  Normalizat    1.0220        .19657        .42331E-03   -.92296    
   4  Prefactor     .97736        .68362E-01    .15007E-03   -.93488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47251e-12
Minuit parameter uncertainties:
  1  2.08442
  2  0.632186
  3  0.196711
  4  0.0683683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587700': 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) = 8666.19043064
delta logL = 0.480239877947

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.774e-01  6.837e-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.022e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.64 +/- 0.63
Photon Flux (Free Index): 3.33e-08 +/- 3.91e-08
Energy Flux (Free Index): 3.04e-05 +/- 3.02e-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/587700/cmap_HighResolution_350784001_351043201_4FGL_J0739.2+0137_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-05', comment='SUCCESS', photon_flux='5.78e-08', energy_flux2='3.04e-05', photon_flux_error='5.19e-08', dlogl='4.80e-01', energy_flux='1.87e-05', photon_flux2='3.33e-08', job_status='DONE', time_completed='2021-08-27 20:25:13.095592', photon_index_error2='0.63', photon_index2='1.64', ts='1.71', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='3.02e-05', EG='1.00', time_epoch_completed='1630121113.1', return_code='0', job_id='587700', GAL2='0.98', EG2='1.02', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='3.91e-08', ts2='2.65', photon_index='2.31' WHERE bin_id='430' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:25:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 587700: <4FGL_J0739.2+0137_daily_bin430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin430 114.82 1.6216 350784001 351043201 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 :                                   854.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

