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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin428
RA = 114.82, Dec = 1.6216
tmin = 350265601, tmax = 350524801
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='587696', job_status='RUN', time_executed='2021-08-27 20:11:01.788827', time_epoch_executed='1630120261.79' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587696/ft1_4FGL_J0739.2+0137_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587696/ft2_4FGL_J0739.2+0137_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587696/ft1_4FGL_J0739.2+0137_daily_bin428.fits outfile=/scratch/kocevski/587696/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin428.fits ra=114.82 dec=1.6216 rad=12.0 tmin=350265601.0 tmax=350524801.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.56
user 3.09
sys 0.45

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587696/ft1_filtered_4FGL_J0739.2+0137_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/587696/ft2_4FGL_J0739.2+0137_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/587696/ltcube_350265601_350524801_4FGL_J0739.2+0137_daily_bin428.fits outfile=/scratch/kocevski/587696/expmap_350265601_350524801_4FGL_J0739.2+0137_daily_bin428.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/587696/ltcube_350265601_350524801_4FGL_J0739.2+0137_daily_bin428.fits
.....................!
real 191.16
user 184.74
sys 5.42

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/587696/ft1_filtered_4FGL_J0739.2+0137_daily_bin428.fits scfile=/scratch/kocevski/587696/ft2_4FGL_J0739.2+0137_daily_bin428.fits outfile=/scratch/kocevski/587696/cmap_350265601_350524801_4FGL_J0739.2+0137_daily_bin428.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.80
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587696/ft1_filtered_4FGL_J0739.2+0137_daily_bin428.fits scfile=/scratch/kocevski/587696/ft2_4FGL_J0739.2+0137_daily_bin428.fits outfile=/scratch/kocevski/587696/cmap_HighResolution_350265601_350524801_4FGL_J0739.2+0137_daily_bin428.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.81
user 0.37
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3756       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12375E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7239       1.0000         .10000E-03   10000.    
    14 'norm      '    13.868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8495       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5619       1.0000         .10000E-03   10000.    
    21 'norm      '    28.911       1.0000         .10000E-03   10000.    
    22 'norm      '    6.9358       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.363       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95601       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=   10191.95     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2909 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3739        10.259       -.75144E-06   -.19063E-03
   2  norm          .10000E-03    10.444       -.11193E-05** at limit **
   3  Prefactor     .10000E-03    41.327        .89697E-05** at limit **
   4  norm          .10000E-03    3.6413       -.22176E-07** at limit **
   5  norm          .10000E-03    .81730       -.24637E-07** at limit **
   6  Prefactor     .10000E-03    48.403       -.13470E-04** at limit **
   7  Prefactor     12.442        8.7670       -.18442E-07   -.97767E-05
   8  Prefactor     .10000E-03    9.3624        .31538E-06** at limit **
   9  Prefactor     .10000E-03    28.122       -.87799E-05** at limit **
  10  norm          2.4055        1.9823       -.73848E-07   -.71080E-03
  11  Prefactor     .10000E-03    10.696       -.79528E-08** at limit **
  12  norm          .10000E-03    4.8166        .11224E-07** at limit **
  13  Prefactor     4.7243        4.3108       -.22859E-06   -.54086E-03
  14  norm          13.868        19.266        .52044E-06   -.12792E-04
  15  Prefactor     9.3581        12.341       -.12584E-05   -.82317E-03
  16  Prefactor     .10000E-03    3.5765       -.22063E-06** at limit **
  17  Prefactor     .10000E-03    14.565        .12712E-05** at limit **
  18  norm          .10022E-03    7.6882        .21823E-05** at limit **
  19  norm          4.8494        3.3886       -.18078E-06   -.77794E-03
  20  norm          1.5620        1.3919       -.27112E-07   -.23032E-03
  21  norm          28.912        23.711        .79987E-06   -.37304E-04
  22  norm          6.9367        4.9389        .42543E-06   -.50965E-03
  23  Prefactor     20.362        32.004       -.23882E-05   -.10553E-04
  24  Normalizat    1.0215        .20416        .74555E-07   -.18508E-03
  25  Prefactor     .95609        .63180E-01    .78376E-07   -.15780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37389
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40554
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.72431
  norm       = 13.8683
  Prefactor  = 9.35808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100224
  norm       = 4.8494
  norm       = 1.56196
  norm       = 28.9119
  norm       = 6.93669
  Prefactor  = 20.3618
  Normalizat = 1.0215
  Prefactor  = 0.956094
 **********
 **   18 **HESSE 
 **********

 FCN=   10191.95     FROM HESSE     STATUS=OK           431 CALLS     3340 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3739        10.384        .22024E-03   -1.5341    
   2  norm          .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.8079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3772        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.442        8.7654        .11357E-03   -1.5002    
   8  Prefactor     .10000E-03    9.4211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4055        1.9815        .12167E-03   -1.5398    
  11  Prefactor     .10000E-03    10.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.8208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7243        4.3300        .18514E-03   -1.5273    
  14  norm          13.868        19.386        .10756E-03   -1.4963    
  15  Prefactor     9.3581        13.025        .65506E-03   -1.5096    
  16  Prefactor     .10000E-03    3.5852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10022E-03    33.933        .51511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8494        3.3846        .14447E-03   -1.5268    
  20  norm          1.5620        1.3880        .10548E-03   -1.5458    
  21  norm          28.912        23.707        .74512E-04   -1.4632    
  22  norm          6.9367        4.9032        .15234E-03   -1.5181    
  23  Prefactor     20.362        31.971        .88758E-04   -1.4805    
  24  Normalizat    1.0215        .21257        .43310E-03   -.92313    
  25  Prefactor     .95609        .66894E-01    .14938E-03   -.94208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9823e-09
Minuit parameter uncertainties:
  1  10.3898
  2  2.30229e-06
  3  2.60606e-05
  4  8.33907e-07
  5  4.54604e-06
  6  2.70675e-05
  7  8.76633
  8  2.59795e-06
  9  2.31353e-05
  10  1.9816
  11  2.49605e-06
  12  3.33939e-07
  13  4.33033
  14  19.3951
  15  13.0286
  16  4.18184e-06
  17  1.24164e-05
  18  0.00551153
  19  3.38474
  20  1.38805
  21  23.7148
  22  4.90348
  23  31.9974
  24  0.21275
  25  0.0668994
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.406e+00  1.982e+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.561e-01  6.690e-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  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.59e-05

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

Saving results to:
/scratch/kocevski/587696/likelihoodResults_350265601_350524801_4FGL_J0739.2+0137_daily_bin428.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) = 10191.7027101
delta logL = 0.24897467184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10191.699797
delta logL = 0.251887793866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3036       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8288       1.0000          .0000       5.0000    
     3 'Normalizat'    .99469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95979       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=   10191.70     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3036        1.9184        .10256E-03   -.48529E-03
   2  alpha         2.8286        .75695        .22359E-01   -.21695E-04
   3  Normalizat    .99468        .19422        .43830E-03   -.37807E-03
   4  Prefactor     .95979        .63235E-01    .14912E-03    .43654E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30356
  alpha      = 2.82864
  Normalizat = 0.994685
  Prefactor  = 0.959791
 **********
 **   18 **HESSE 
 **********

 FCN=   10191.70     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3036        1.8495        .41025E-05   -1.5404    
   2  alpha         2.8286        .72973        .89437E-03    .13184    
   3  Normalizat    .99468        .19438        .17532E-04   -.93209    
   4  Prefactor     .95979        .63240E-01    .29824E-04   -.94082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64071e-10
Minuit parameter uncertainties:
  1  1.84952
  2  0.740704
  3  0.194523
  4  0.0632449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587696': 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) = 10191.699797
delta logL = 0.251887820819

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.304e+00  1.850e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.829e+00  7.407e-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.598e-01  6.324e-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.947e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.83 +/- 0.74
Photon Flux (Free Index): 9.02e-08 +/- 7.22e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.42e-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/587696/cmap_HighResolution_350265601_350524801_4FGL_J0739.2+0137_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-05', comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='1.99e-05', photon_flux_error='4.91e-08', dlogl='2.52e-01', energy_flux='1.93e-05', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-08-27 20:26:38.654374', photon_index_error2='0.74', photon_index2='2.83', ts='2.39', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.42e-05', EG='1.02', time_epoch_completed='1630121198.65', return_code='0', job_id='587696', GAL2='0.96', EG2='0.99', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='7.22e-08', ts2='2.96', photon_index='2.31' WHERE bin_id='428' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 587696: <4FGL_J0739.2+0137_daily_bin428> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin428> 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) <bullet0041>, 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:26:39 2021
Results reported at Fri Aug 27 20:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin428 114.82 1.6216 350265601 350524801 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 :                                   938.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            960 sec.

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

