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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin930
RA = 114.82, Dec = 1.6216
tmin = 480384001, tmax = 480643201
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='591932', job_status='RUN', time_executed='2021-08-27 20:26:42.552456', time_epoch_executed='1630121202.55' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591932/ft1_4FGL_J0739.2+0137_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591932/ft2_4FGL_J0739.2+0137_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591932/ft1_4FGL_J0739.2+0137_daily_bin930.fits outfile=/scratch/kocevski/591932/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin930.fits ra=114.82 dec=1.6216 rad=12.0 tmin=480384001.0 tmax=480643201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.37
user 3.30
sys 0.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591932/ft2_4FGL_J0739.2+0137_daily_bin930.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/591932/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin930.fits evtable="EVENTS" outfile="/scratch/kocevski/591932/ft1_filtered_4FGL_J0739.2+0137_daily_bin930.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.28
user 0.31
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591932/ft1_filtered_4FGL_J0739.2+0137_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/591932/ft2_4FGL_J0739.2+0137_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/591932/ltcube_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.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/591932/ft2_4FGL_J0739.2+0137_daily_bin930.fits
.....................!
real 12.97
user 11.62
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591932/ft1_filtered_4FGL_J0739.2+0137_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/591932/ft2_4FGL_J0739.2+0137_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/591932/ltcube_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.fits outfile=/scratch/kocevski/591932/expmap_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.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/591932/ltcube_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.fits
.....................!
real 193.32
user 185.25
sys 6.22

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/591932/ft1_filtered_4FGL_J0739.2+0137_daily_bin930.fits scfile=/scratch/kocevski/591932/ft2_4FGL_J0739.2+0137_daily_bin930.fits outfile=/scratch/kocevski/591932/cmap_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.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 1.31
user 0.39
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591932/ft1_filtered_4FGL_J0739.2+0137_daily_bin930.fits scfile=/scratch/kocevski/591932/ft2_4FGL_J0739.2+0137_daily_bin930.fits outfile=/scratch/kocevski/591932/cmap_HighResolution_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.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 1.34
user 0.40
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.7255       1.0000         .10000E-03   10000.    
     3 'Prefactor '    98.499       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9877       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.131       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9217       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .82943       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.403       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4893       1.0000         .10000E-03   10000.    
    21 'norm      '    18.562       1.0000         .10000E-03   10000.    
    22 'norm      '    9.3517       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.095       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62946       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1132       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=   8256.769     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2897 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4128       -.10735E-05** at limit **
   2  norm          7.7235        24.099        .13935E-06    .26842E-04
   3  Prefactor     98.494        58.028        .79016E-06    .35120E-04
   4  norm          3.9871        6.1344        .26865E-05   -.79871E-04
   5  norm          .10000E-03    .80203        .15428E-08** at limit **
   6  Prefactor     27.131        27.221        .51037E-07    .88679E-05
   7  Prefactor     9.9218        12.743        .11485E-06    .52942E-04
   8  Prefactor     .10000E-03    30.377       -.10901E-05** at limit **
   9  Prefactor     .10000E-03    7.2599       -.31320E-06** at limit **
  10  norm          .82926        1.6055        .15222E-06   -.37514E-05
  11  Prefactor     .10000E-03    23.428        .86156E-06** at limit **
  12  norm          13.601        15.278        .12073E-06    .10866E-04
  13  Prefactor     .10000E-03    1.3947        .61488E-07** at limit **
  14  norm          .10000E-03    5.2407        .84547E-06** at limit **
  15  Prefactor     18.402        12.416       -.10379E-06   -.76975E-04
  16  Prefactor     .10000E-03    6.3380        .70768E-06** at limit **
  17  Prefactor     .10000E-03    51.917       -.41036E-07** at limit **
  18  norm          .10000E-03    3.7964        .34914E-07** at limit **
  19  norm          .10000E-03    1.8237        .68908E-07** at limit **
  20  norm          2.4901        1.9418        .22982E-07   -.13879E-03
  21  norm          18.555        23.609       -.14712E-06   -.37920E-04
  22  norm          9.3511        5.0092       -.20022E-07   -.81363E-04
  23  Prefactor     15.084        41.392        .21347E-05    .14168E-04
  24  Normalizat    .62952        .21122       -.10884E-06    .11061E-06
  25  Prefactor     1.1132        .76689E-01   -.40061E-06    .14380E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.72354
  Prefactor  = 98.494
  norm       = 3.9871
  norm       = 0.0001
  Prefactor  = 27.1307
  Prefactor  = 9.92177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.829261
  Prefactor  = 0.0001
  norm       = 13.601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.4024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.49013
  norm       = 18.5548
  norm       = 9.35112
  Prefactor  = 15.0841
  Normalizat = 0.629518
  Prefactor  = 1.11321
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.769     FROM HESSE     STATUS=OK           429 CALLS     3326 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7235        24.217        .14427E-03   -1.5152    
   3  Prefactor     98.494        58.069        .40504E-04   -1.3720    
   4  norm          3.9871        6.1442        .10099E-02   -1.5309    
   5  norm          .10000E-03    .82380        .15876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.131        27.212        .76912E-04   -1.4666    
   7  Prefactor     9.9218        12.724        .12721E-03   -1.5078    
   8  Prefactor     .10000E-03    30.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .82926        1.5660        .15230E-03   -1.5526    
  11  Prefactor     .10000E-03    23.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.601        15.279        .10861E-03   -1.4970    
  13  Prefactor     .10000E-03    1.4142        .10471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.2546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.402        12.427        .93363E-04   -1.4850    
  16  Prefactor     .10000E-03    6.4026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8035        .17289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.6287        .23264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4901        1.8979        .10584E-03   -1.5392    
  21  norm          18.555        23.556        .92962E-04   -1.4846    
  22  norm          9.3511        5.0107        .13105E-03   -1.5096    
  23  Prefactor     15.084        41.498        .10309E-03   -1.4931    
  24  Normalizat    .62952        .21621        .49305E-03   -1.0674    
  25  Prefactor     1.1132        .79991E-01    .14557E-03   -.89046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89869e-11
Minuit parameter uncertainties:
  1  3.3748e-05
  2  24.2482
  3  58.1022
  4  6.14517
  5  3.17506e-07
  6  27.2248
  7  12.7279
  8  5.73973e-07
  9  1.06817e-05
  10  1.56606
  11  7.59137e-05
  12  15.2829
  13  3.28239e-06
  14  3.01909e-05
  15  12.4288
  16  2.78271e-05
  17  0.000237826
  18  3.49059e-06
  19  3.53632e-06
  20  1.89799
  21  23.5674
  22  5.01092
  23  41.5777
  24  0.216498
  25  0.0799997
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
498   Normalization:  6.295e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/591932/likelihoodResults_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.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) = 8256.50732199
delta logL = 0.261424460619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8256.4749372
delta logL = 0.293809252804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1988       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7281       1.0000          .0000       5.0000    
     3 'Normalizat'    .63306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1108       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=   8256.475     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1994        1.8494        .10371E-01    .89892E-03
   2  alpha         1.7282        .63633        .43956       -.34578E-04
   3  Normalizat    .63307        .18471        .11080        .46228E-04
   4  Prefactor     1.1108        .71316E-01    .37189E-01   -.11869E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1994
  alpha      = 1.72816
  Normalizat = 0.63307
  Prefactor  = 1.11084
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.475     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1994        1.5172        .12137E-03   -1.5489    
   2  alpha         1.7282        .63986        .19615E-01   -.31386    
   3  Normalizat    .63307        .18947        .49157E-03   -1.0660    
   4  Prefactor     1.1108        .73429E-01    .14566E-03   -.89121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42278e-09
Minuit parameter uncertainties:
  1  1.51726
  2  0.647842
  3  0.189669
  4  0.0734355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591932': 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) = 8256.47493711
delta logL = 0.293809338847

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.199e+00  1.517e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.728e+00  6.478e-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.111e+00  7.344e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  6.331e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/591932/cmap_HighResolution_480384001_480643201_4FGL_J0739.2+0137_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-08-27 20:40:25.125868', job_id='591932', GAL2='1.11', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630122025.13', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.94e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='930' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:40:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 591932: <4FGL_J0739.2+0137_daily_bin930> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin930 114.82 1.6216 480384001 480643201 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 :                                   828.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

