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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1403
RA = 114.82, Dec = 1.6216
tmin = 602985601, tmax = 603244801
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='594721', job_status='RUN', time_executed='2021-08-27 20:37:39.530458', time_epoch_executed='1630121859.53' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594721/ft1_4FGL_J0739.2+0137_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594721/ft2_4FGL_J0739.2+0137_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594721/ft1_4FGL_J0739.2+0137_daily_bin1403.fits outfile=/scratch/kocevski/594721/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1403.fits ra=114.82 dec=1.6216 rad=12.0 tmin=602985601.0 tmax=603244801.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 9.92
user 2.81
sys 7.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594721/ft1_filtered_4FGL_J0739.2+0137_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/594721/ft2_4FGL_J0739.2+0137_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/594721/ltcube_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.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/594721/ft2_4FGL_J0739.2+0137_daily_bin1403.fits
.....................!
real 20.08
user 11.97
sys 8.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594721/ft1_filtered_4FGL_J0739.2+0137_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/594721/ft2_4FGL_J0739.2+0137_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/594721/ltcube_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.fits outfile=/scratch/kocevski/594721/expmap_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.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/594721/ltcube_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.fits
.....................!
real 199.48
user 186.25
sys 12.87

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/594721/ft1_filtered_4FGL_J0739.2+0137_daily_bin1403.fits scfile=/scratch/kocevski/594721/ft2_4FGL_J0739.2+0137_daily_bin1403.fits outfile=/scratch/kocevski/594721/cmap_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.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 7.39
user 0.38
sys 6.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594721/ft1_filtered_4FGL_J0739.2+0137_daily_bin1403.fits scfile=/scratch/kocevski/594721/ft2_4FGL_J0739.2+0137_daily_bin1403.fits outfile=/scratch/kocevski/594721/cmap_HighResolution_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.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 7.35
user 0.39
sys 6.94

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.148       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.822       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.379       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    46.040       1.0000         .10000E-03   10000.    
    15 'Prefactor '    72.264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7371       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5179       1.0000         .10000E-03   10000.    
    21 'norm      '    70.902       1.0000         .10000E-03   10000.    
    22 'norm      '    21.497       1.0000         .10000E-03   10000.    
    23 'Prefactor '    329.25       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .15463       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97288       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=   3494.078     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     2839 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.147        1.0008        .78843E-08   -.41788E-05
   2  norm          .10000E-03    3.8357        .63223E-06** at limit **
   3  Prefactor     63.822        1.0006        .18271E-08   -.64445E-04
   4  norm          .10000E-03    2.0364        .13527E-05** at limit **
   5  norm          .10000E-03    1.5129       -.53388E-06** at limit **
   6  Prefactor     38.379        1.0002       -.90171E-09    .19315E-04
   7  Prefactor     .10005E-03    4.7471        .12026E-05** at limit **
   8  Prefactor     7.7341        1.0030       -.11256E-07   -.80478E-05
   9  Prefactor     .10036E-03    26.966        .96444E-05** at limit **
  10  norm          2.1675        3.6460        .13372E-05    .72551E-04
  11  Prefactor     .10007E-03    30.775       -.39964E-05** at limit **
  12  norm          .10004E-03    9.2119       -.42522E-05** at limit **
  13  Prefactor     .10000E-03    7.8812        .21722E-05** at limit **
  14  norm          46.038        1.0981       -.39585E-07    .76372E-03
  15  Prefactor     72.264        1.0199        .13722E-07   -.43350E-03
  16  Prefactor     .10018E-03    4.1170       -.15171E-05** at limit **
  17  Prefactor     .10166E-03    69.074        .10776E-04** at limit **
  18  norm          .10181E-03    40.818        .21687E-04** at limit **
  19  norm          4.7368        4.5102       -.16749E-05   -.25079E-02
  20  norm          5.5180        4.1544        .88352E-06    .16944E-02
  21  norm          70.902        1.0007       -.20981E-08    .72316E-04
  22  norm          21.497        1.0025        .93757E-08   -.39104E-04
  23  Prefactor     329.25        1.0001       -.54823E-09    .75476E-04
  24  Normalizat    .15460        .41288       -.71213E-05    .30128E-05
  25  Prefactor     .97288        .99767E-01    .19287E-05    .58286E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1474
  norm       = 0.000100002
  Prefactor  = 63.8223
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.3785
  Prefactor  = 0.000100047
  Prefactor  = 7.73409
  Prefactor  = 0.00010036
  norm       = 2.16752
  Prefactor  = 0.000100073
  norm       = 0.000100039
  Prefactor  = 0.0001
  norm       = 46.0385
  Prefactor  = 72.2642
  Prefactor  = 0.000100183
  Prefactor  = 0.000101661
  norm       = 0.000101809
  norm       = 4.73684
  norm       = 5.51803
  norm       = 70.9021
  norm       = 21.4971
  Prefactor  = 329.255
  Normalizat = 0.154597
  Prefactor  = 0.972879
 **********
 **   18 **HESSE 
 **********

 FCN=   3494.078     FROM HESSE     STATUS=OK           477 CALLS     3316 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.147        18.791        .24180E-02   -1.4880    
   2  norm          .10000E-03    9.2940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     63.822        177.17        .12558E-02   -1.4108    
   4  norm          .10000E-03    2.0344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.379        68.884        .16174E-02   -1.4468    
   7  Prefactor     .10005E-03    9.2187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7341        70.833        .36049E-02   -1.5152    
   9  Prefactor     .10036E-03    40.468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1675        4.8881        .69932E-02   -1.5414    
  11  Prefactor     .10007E-03    35.961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10004E-03    10.364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          46.038        212.03        .14773E-02   -1.4350    
  15  Prefactor     72.264        98.259        .11807E-02   -1.4006    
  16  Prefactor     .10018E-03    9.7411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10166E-03    89.660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10181E-03    67.432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7368        5.0342        .46218E-02   -1.5273    
  20  norm          5.5180        5.9557        .42761E-02   -1.5238    
  21  norm          70.902        176.05        .11919E-02   -1.4022    
  22  norm          21.497        24.773        .21597E-02   -1.4780    
  23  Prefactor     329.25        421.12        .56041E-03   -1.2059    
  24  Normalizat    .15460        6.9325        .29339       -1.3296    
  25  Prefactor     .97288        .41353        .28630E-01   -.93639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48209e-07
Minuit parameter uncertainties:
  1  18.7979
  2  0.0002438
  3  178.665
  4  4.05285e-06
  5  1.92822e-06
  6  69.0269
  7  0.00131078
  8  46.8848
  9  0.00764205
  10  4.88904
  11  0.0032379
  12  0.001272
  13  0.000106938
  14  198.774
  15  98.4806
  16  0.00267429
  17  0.0244409
  18  0.0221151
  19  5.0347
  20  5.95633
  21  177.368
  22  24.7853
  23  425.128
  24  1.92751
  25  0.414886
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.168e+00  4.889e+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.729e-01  4.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.546e-01  1.928e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 3.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/594721/likelihoodResults_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.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) = 3494.07582828
delta logL = 0.00220178111977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3494.07581583
delta logL = 0.00221422169079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1671       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3968       1.0000          .0000       5.0000    
     3 'Normalizat'    .15269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97310       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=   3494.076     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1644        10.281        .69940E-02    .24939E-03
   2  alpha         2.3979        3.6229        .41196       -.61155E-05
   3  Normalizat    .15268        .77080        .29534        .41188E-04
   4  Prefactor     .97311        .17406        .28627E-01   -.81029E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16441
  alpha      = 2.39786
  Normalizat = 0.152676
  Prefactor  = 0.973109
 **********
 **   18 **HESSE 
 **********

 FCN=   3494.076     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1644        3.6619        .14091E-03   -1.5414    
   2  alpha         2.3979        1.2343        .26797E-01   -.40866E-01
   3  Normalizat    .15268        .41951        .11935E-01   -1.3312    
   4  Prefactor     .97311        .10260        .12653E-03   -.93631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28989e-09
Minuit parameter uncertainties:
  1  3.66228
  2  1.291
  3  0.428804
  4  0.102618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594721': 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) = 3494.07581526
delta logL = 0.00221479486208

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.164e+00  3.662e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.398e+00  1.291e+00  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.731e-01  1.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.527e-01  4.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
Ra Dec: 114.820 1.622

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/594721/cmap_HighResolution_602985601_603244801_4FGL_J0739.2+0137_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', job_status='DONE', photon_flux_upper_limit='3.16e-07', time_completed='2021-08-27 20:48:26.423968', job_id='594721', GAL2='0.97', fit_tolerance='1e-08', EG2='0.15', EG='0.15', time_epoch_completed='1630122506.42', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.21e-03', ts2='0.53', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1403' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:48:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 594721: <4FGL_J0739.2+0137_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1403 114.82 1.6216 602985601 603244801 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 :                                   735.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

