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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1574
RA = 114.82, Dec = 1.6216
tmin = 647308801, tmax = 647568001
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='596242', job_status='RUN', time_executed='2021-08-27 20:43:33.850745', time_epoch_executed='1630122213.85' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/596242

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/596242/ft1_4FGL_J0739.2+0137_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/596242/ft2_4FGL_J0739.2+0137_daily_bin1574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/596242/ft1_4FGL_J0739.2+0137_daily_bin1574.fits outfile=/scratch/kocevski/596242/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1574.fits ra=114.82 dec=1.6216 rad=12.0 tmin=647308801.0 tmax=647568001.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 2.73
user 2.48
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/596242/ft2_4FGL_J0739.2+0137_daily_bin1574.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/596242/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1574.fits evtable="EVENTS" outfile="/scratch/kocevski/596242/ft1_filtered_4FGL_J0739.2+0137_daily_bin1574.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.45
user 0.26
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/596242/ft1_filtered_4FGL_J0739.2+0137_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/596242/ft2_4FGL_J0739.2+0137_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/596242/ltcube_647308801_647568001_4FGL_J0739.2+0137_daily_bin1574.fits outfile=/scratch/kocevski/596242/expmap_647308801_647568001_4FGL_J0739.2+0137_daily_bin1574.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/596242/ltcube_647308801_647568001_4FGL_J0739.2+0137_daily_bin1574.fits
.....................!
real 144.78
user 140.93
sys 3.59

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/596242/ft1_filtered_4FGL_J0739.2+0137_daily_bin1574.fits scfile=/scratch/kocevski/596242/ft2_4FGL_J0739.2+0137_daily_bin1574.fits outfile=/scratch/kocevski/596242/cmap_647308801_647568001_4FGL_J0739.2+0137_daily_bin1574.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.78
user 0.28
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/596242/ft1_filtered_4FGL_J0739.2+0137_daily_bin1574.fits scfile=/scratch/kocevski/596242/ft2_4FGL_J0739.2+0137_daily_bin1574.fits outfile=/scratch/kocevski/596242/cmap_HighResolution_647308801_647568001_4FGL_J0739.2+0137_daily_bin1574.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.53
user 0.29
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11144E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .71098E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29500       1.0000         .10000E-03   10000.    
     4 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1567       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.446       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91769       1.0000         .10000E-03   10000.    
    12 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.488       1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2964       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7923       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14308E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7814       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.6168       1.0000         .10000E-03   10000.    
    21 'norm      '    .12736E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2038       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96677       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0963       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=   12015.84     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     2501 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    14.155        .19111E-04** at limit **
   2  norm          .12469E-03    65.288        .91935E-04** at limit **
   3  Prefactor     .13797E-03    1040.5       -.96965E-04** at limit **
   4  norm          .10002E-03    14.059       -.19202E-04** at limit **
   5  norm          1.2751        1.4943        .10109E-05    .65702E-03
   6  Prefactor     .10072E-03    28.081       -.29552E-04** at limit **
   7  Prefactor     .10000E-03    2.8471       -.21273E-06** at limit **
   8  Prefactor     7.1574        6.5768        .13666E-04    .24939E-02
   9  Prefactor     29.568        21.094       -.29328E-04    .14049E-01
  10  norm          3.0866        1.8556        .46349E-06    .16674E-03
  11  Prefactor     .92877        2.5207       -.98611E-05   -.20985E-03
  12  norm          .10000E-03    5.9014       -.44904E-06** at limit **
  13  Prefactor     13.487        5.4225       -.88617E-06   -.10186E-02
  14  norm          .10000E-03    9.0641        .79003E-07** at limit **
  15  Prefactor     1.3001        1.7894        .40276E-05    .83142E-03
  16  Prefactor     4.7915        4.8380        .21320E-06   -.28920E-03
  17  Prefactor     .10050E-03    42.818       -.34538E-04** at limit **
  18  norm          4.7787        1.6555       -.27732E-05   -.15727E-02
  19  norm          .10000E-03    1.0209        .17564E-06** at limit **
  20  norm          9.6161        2.1172       -.13599E-06    .29125E-05
  21  norm          .10263E-03    19.210        .33960E-04** at limit **
  22  norm          3.2030        2.6991       -.48024E-07    .25407E-03
  23  Prefactor     .10031E-03    25.724        .17557E-04** at limit **
  24  Normalizat    .96692        .19415        .82739E-05    .74824E-04
  25  Prefactor     1.0962        .63444E-01   -.11456E-05    .86833E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100019
  norm       = 0.000124687
  Prefactor  = 0.000137973
  norm       = 0.000100015
  norm       = 1.27512
  Prefactor  = 0.000100721
  Prefactor  = 0.0001
  Prefactor  = 7.15744
  Prefactor  = 29.5683
  norm       = 3.08663
  Prefactor  = 0.928775
  norm       = 0.0001
  Prefactor  = 13.4869
  norm       = 0.0001
  Prefactor  = 1.30015
  Prefactor  = 4.79147
  Prefactor  = 0.000100502
  norm       = 4.77872
  norm       = 0.0001
  norm       = 9.61612
  norm       = 0.000102631
  norm       = 3.203
  Prefactor  = 0.000100307
  Normalizat = 0.966925
  Prefactor  = 1.09622
 **********
 **   18 **HESSE 
 **********

 FCN=   12015.84     FROM HESSE     STATUS=OK           501 CALLS     3002 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    13.944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .12469E-03    9.2293        .10485       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13797E-03    56.079        .17996       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    2.6542        .58685E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2751        1.5506        .98149E-02   -1.5482    
   6  Prefactor     .10072E-03    31.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1574        6.5995        .37486E-02   -1.5173    
   9  Prefactor     29.568        38.013        .18458E-02   -1.4620    
  10  norm          3.0866        1.8735        .57697E-02   -1.5357    
  11  Prefactor     .92877        11.519        .20789       -1.5515    
  12  norm          .10000E-03    5.8839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.487        5.6016        .27266E-02   -1.4973    
  14  norm          .10000E-03    9.0634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3001        27.834        .97109E-02   -1.5480    
  16  Prefactor     4.7915        4.8696        .45945E-02   -1.5270    
  17  Prefactor     .10050E-03    46.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7787        7.8412        .45999E-02   -1.5271    
  19  norm          .10000E-03    .98061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.6161        2.1199        .32306E-02   -1.5088    
  21  norm          .10263E-03    32.959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2030        2.7015        .56590E-02   -1.5350    
  23  Prefactor     .10031E-03    39.040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96692        .19623        .10460       -.94147    
  25  Prefactor     1.0962        .62292E-01    .37731E-01   -.89588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13651e-06
Minuit parameter uncertainties:
  1  0.00103413
  2  0.0301937
  3  0.0923789
  4  0.000399667
  5  1.55064
  6  0.00948235
  7  1.74052e-05
  8  6.60017
  9  38.0439
  10  1.87351
  11  6.54304
  12  4.47369e-05
  13  5.60182
  14  9.68218e-06
  15  12.0372
  16  4.87002
  17  0.00971464
  18  7.8429
  19  7.45031e-07
  20  2.1199
  21  0.0186346
  22  2.70156
  23  0.00692489
  24  0.196375
  25  0.062296
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.087e+00  1.874e+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.096e+00  6.230e-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:  9.669e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.65e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.50e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12015.8301364
delta logL = 0.0135821926615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12015.8292692
delta logL = 0.0144494032356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1207       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4283       1.0000          .0000       5.0000    
     3 'Normalizat'    .95850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0975       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=   12015.83     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      251 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1206        1.8291        .10751E-03    .24110E-04
   2  alpha         2.4282        .67598        .22388E-01   -.28244E-05
   3  Normalizat    .95849        .19030        .46550E-03   -.26621E-04
   4  Prefactor     1.0975        .63381E-01    .15149E-03   -.56285E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12058
  alpha      = 2.42823
  Normalizat = 0.958492
  Prefactor  = 1.09745
 **********
 **   18 **HESSE 
 **********

 FCN=   12015.83     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1206        1.8278        .43003E-05   -1.5355    
   2  alpha         2.4282        .67456        .89551E-03   -.28711E-01
   3  Normalizat    .95849        .19043        .18620E-04   -.94434    
   4  Prefactor     1.0975        .63383E-01    .60595E-05   -.89548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62686e-12
Minuit parameter uncertainties:
  1  1.82779
  2  0.683029
  3  0.190569
  4  0.0633872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/596242': 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) = 12015.8292692
delta logL = 0.0144494127489

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.121e+00  1.828e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.428e+00  6.830e-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.097e+00  6.339e-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:  9.585e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.16
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.43 +/- 0.68
Photon Flux (Free Index): 8.48e-08 +/- 6.96e-08
Energy Flux (Free Index): 2.46e-05 +/- 1.44e-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/596242/cmap_HighResolution_647308801_647568001_4FGL_J0739.2+0137_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.65e-08', energy_flux2='2.46e-05', photon_flux_error='4.64e-08', dlogl='1.44e-02', energy_flux='2.47e-05', photon_flux2='8.48e-08', job_status='DONE', time_completed='2021-08-27 20:55:18.230249', photon_index_error2='0.68', photon_index2='2.43', ts='6.11', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.97', time_epoch_completed='1630122918.23', return_code='0', job_id='596242', GAL2='1.10', EG2='0.96', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.96e-08', ts2='6.16', photon_index='2.31' WHERE bin_id='1574' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 596242: <4FGL_J0739.2+0137_daily_bin1574> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1574> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 20:40:24 2021
Job was executed on host(s) <bullet0135>, 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:55:19 2021
Results reported at Fri Aug 27 20:55:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1574 114.82 1.6216 647308801 647568001 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 :                                   698.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

