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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin361
RA = 114.82, Dec = 1.6216
tmin = 332899201, tmax = 333158401
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='587598', job_status='RUN', time_executed='2021-08-27 20:13:16.076374', time_epoch_executed='1630120396.08' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587598/ft1_4FGL_J0739.2+0137_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587598/ft2_4FGL_J0739.2+0137_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587598/ft1_4FGL_J0739.2+0137_daily_bin361.fits outfile=/scratch/kocevski/587598/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin361.fits ra=114.82 dec=1.6216 rad=12.0 tmin=332899201.0 tmax=333158401.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 13.23
user 3.92
sys 9.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587598/ft1_filtered_4FGL_J0739.2+0137_daily_bin361.fits" evtable="EVENTS" scfile=/scratch/kocevski/587598/ft2_4FGL_J0739.2+0137_daily_bin361.fits sctable="SC_DATA" outfile=/scratch/kocevski/587598/ltcube_332899201_333158401_4FGL_J0739.2+0137_daily_bin361.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/587598/ft2_4FGL_J0739.2+0137_daily_bin361.fits
.....................!
real 22.12
user 11.30
sys 10.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587598/ft1_filtered_4FGL_J0739.2+0137_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/587598/ft2_4FGL_J0739.2+0137_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/587598/ltcube_332899201_333158401_4FGL_J0739.2+0137_daily_bin361.fits outfile=/scratch/kocevski/587598/expmap_332899201_333158401_4FGL_J0739.2+0137_daily_bin361.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/587598/ltcube_332899201_333158401_4FGL_J0739.2+0137_daily_bin361.fits
.....................!
real 201.47
user 184.96
sys 16.17

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/587598/ft1_filtered_4FGL_J0739.2+0137_daily_bin361.fits scfile=/scratch/kocevski/587598/ft2_4FGL_J0739.2+0137_daily_bin361.fits outfile=/scratch/kocevski/587598/cmap_332899201_333158401_4FGL_J0739.2+0137_daily_bin361.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 9.26
user 0.36
sys 8.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587598/ft1_filtered_4FGL_J0739.2+0137_daily_bin361.fits scfile=/scratch/kocevski/587598/ft2_4FGL_J0739.2+0137_daily_bin361.fits outfile=/scratch/kocevski/587598/cmap_HighResolution_332899201_333158401_4FGL_J0739.2+0137_daily_bin361.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 9.31
user 0.38
sys 8.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8361       1.0000         .10000E-03   10000.    
     5 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.756       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2099       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28469E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .20248E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91234       1.0000         .10000E-03   10000.    
    14 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.6524       1.0000         .10000E-03   10000.    
    19 'norm      '    .82793       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.7510       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3345       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93291       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=   7913.498     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2499 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6876        .39044E-06** at limit **
   2  norm          .10000E-03    14.548       -.24839E-06** at limit **
   3  Prefactor     .10000E-03    20.593        .14662E-05** at limit **
   4  norm          5.8366        5.0832        .10903E-06    .41153E-04
   5  norm          .10000E-03    1.0555        .11217E-06** at limit **
   6  Prefactor     .10000E-03    34.606        .98699E-07** at limit **
   7  Prefactor     2.5486        10.039        .93304E-06   -.33385E-04
   8  Prefactor     11.756        13.559        .10001E-05   -.10256E-03
   9  Prefactor     .10000E-03    7.9839       -.35895E-06** at limit **
  10  norm          3.2095        2.1032        .70235E-07   -.74587E-04
  11  Prefactor     .10002E-03    192.99       -.66806E-05** at limit **
  12  norm          .10002E-03    12.359       -.24443E-06** at limit **
  13  Prefactor     .91420        4.1614        .24115E-05   -.25814E-03
  14  norm          .10000E-03    9.2473       -.10690E-06** at limit **
  15  Prefactor     11.080        10.192       -.26284E-06   -.73112E-04
  16  Prefactor     11.560        10.727       -.17799E-06   -.72459E-04
  17  Prefactor     .10000E-03    25.503       -.26267E-05** at limit **
  18  norm          7.6440        16.565        .54337E-06    .29074E-05
  19  norm          .82765        2.1972        .66813E-06   -.14798E-03
  20  norm          .10000E-03    .48067       -.16230E-07** at limit **
  21  norm          .10000E-03    7.6278        .18757E-06** at limit **
  22  norm          9.7508        5.4707        .24082E-07   -.91986E-04
  23  Prefactor     .10000E-03    35.745        .18310E-05** at limit **
  24  Normalizat    1.3345        .21961       -.18120E-05   -.73199E-04
  25  Prefactor     .93287        .70524E-01    .37536E-07   -.18253E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.83665
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54857
  Prefactor  = 11.7558
  Prefactor  = 0.0001
  norm       = 3.20946
  Prefactor  = 0.000100015
  norm       = 0.000100017
  Prefactor  = 0.914203
  norm       = 0.0001
  Prefactor  = 11.0803
  Prefactor  = 11.56
  Prefactor  = 0.000100004
  norm       = 7.64396
  norm       = 0.827647
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.75081
  Prefactor  = 0.000100002
  Normalizat = 1.33446
  Prefactor  = 0.932866
 **********
 **   18 **HESSE 
 **********

 FCN=   7913.498     FROM HESSE     STATUS=OK           431 CALLS     2930 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8366        5.0970        .16624E-03   -1.5225    
   5  norm          .10000E-03    2.4855        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5486        10.039        .25580E-03   -1.5389    
   8  Prefactor     11.756        13.617        .58418E-03   -1.5022    
   9  Prefactor     .10000E-03    8.0121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2095        2.1001        .99571E-04   -1.5350    
  11  Prefactor     .10002E-03    203.23        .42823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    91.385        .60695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .91420        4.3930        .33812E-03   -1.5517    
  14  norm          .10000E-03    9.2844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.080        10.187        .12035E-03   -1.5042    
  16  Prefactor     11.560        10.647        .11781E-03   -1.5028    
  17  Prefactor     .10000E-03    26.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.6440        16.590        .14496E-03   -1.5155    
  19  norm          .82765        2.2391        .20533E-02   -1.5526    
  20  norm          .10000E-03    .48265        .60195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.6450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.7508        5.4760        .12833E-03   -1.5083    
  23  Prefactor     .10000E-03    36.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3345        .23356        .38101E-03   -.82544    
  25  Prefactor     .93287        .75477E-01    .15549E-03   -.95002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44641e-08
Minuit parameter uncertainties:
  1  5.37931e-05
  2  4.63127e-05
  3  0.000330391
  4  5.09738
  5  2.08429e-06
  6  3.00878e-05
  7  10.0456
  8  13.6206
  9  4.95161e-05
  10  2.10019
  11  0.0035042
  12  0.00251705
  13  4.00831
  14  1.39039e-05
  15  10.1889
  16  10.6484
  17  0.000626236
  18  16.5997
  19  2.23934
  20  3.5859e-07
  21  2.72167e-05
  22  5.47624
  23  0.000535089
  24  0.233741
  25  0.0754852
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.209e+00  2.100e+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.329e-01  7.549e-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.334e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.95e-08 +/- 5.20e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.68e-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) = 7913.44143441
delta logL = 0.0570085451045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7913.43782001
delta logL = 0.0606229485411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0749       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5362       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93454       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=   7913.438     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0749        2.1064        .93833E-04    .10354E-02
   2  alpha         2.5366        .66319        .18127E-01    .56615E-04
   3  Normalizat    1.3236        .21192        .38228E-03   -.38096E-04
   4  Prefactor     .93454        .72873E-01    .15537E-03   -.93001E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.07487
  alpha      = 2.53661
  Normalizat = 1.32361
  Prefactor  = 0.934545
 **********
 **   18 **HESSE 
 **********

 FCN=   7913.438     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0749        2.0687        .37533E-05   -1.5357    
   2  alpha         2.5366        .65129        .72508E-03    .14645E-01
   3  Normalizat    1.3236        .21201        .15291E-04   -.82864    
   4  Prefactor     .93454        .72884E-01    .62148E-05   -.94944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41304e-10
Minuit parameter uncertainties:
  1  2.06877
  2  0.658893
  3  0.212153
  4  0.0728919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587598': 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) = 7913.43781981
delta logL = 0.0606231511192

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.075e+00  2.069e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.537e+00  6.589e-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.345e-01  7.289e-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.324e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.54 +/- 0.66
Photon Flux (Free Index): 9.17e-08 +/- 6.57e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.58e-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/587598/cmap_HighResolution_332899201_333158401_4FGL_J0739.2+0137_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.95e-08', energy_flux2='2.44e-05', photon_flux_error='5.20e-08', dlogl='6.06e-02', energy_flux='2.57e-05', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-08-27 20:26:54.958039', photon_index_error2='0.66', photon_index2='2.54', ts='4.18', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.33', time_epoch_completed='1630121214.96', return_code='0', job_id='587598', GAL2='0.93', EG2='1.32', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='6.57e-08', ts2='4.31', photon_index='2.31' WHERE bin_id='361' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:26:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 587598: <4FGL_J0739.2+0137_daily_bin361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin361 114.82 1.6216 332899201 333158401 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 :                                   940.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

