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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin470
RA = 114.82, Dec = 1.6216
tmin = 361152001, tmax = 361411201
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='587758', job_status='RUN', time_executed='2021-08-27 20:11:15.047351', time_epoch_executed='1630120275.05' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587758/ft1_4FGL_J0739.2+0137_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587758/ft2_4FGL_J0739.2+0137_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587758/ft1_4FGL_J0739.2+0137_daily_bin470.fits outfile=/scratch/kocevski/587758/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin470.fits ra=114.82 dec=1.6216 rad=12.0 tmin=361152001.0 tmax=361411201.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.49
user 3.38
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587758/ft2_4FGL_J0739.2+0137_daily_bin470.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/587758/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin470.fits evtable="EVENTS" outfile="/scratch/kocevski/587758/ft1_filtered_4FGL_J0739.2+0137_daily_bin470.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.39
user 0.30
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587758/ft1_filtered_4FGL_J0739.2+0137_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/587758/ft2_4FGL_J0739.2+0137_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/587758/ltcube_361152001_361411201_4FGL_J0739.2+0137_daily_bin470.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/587758/ft2_4FGL_J0739.2+0137_daily_bin470.fits
.....................!
real 12.89
user 11.55
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587758/ft1_filtered_4FGL_J0739.2+0137_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/587758/ft2_4FGL_J0739.2+0137_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/587758/ltcube_361152001_361411201_4FGL_J0739.2+0137_daily_bin470.fits outfile=/scratch/kocevski/587758/expmap_361152001_361411201_4FGL_J0739.2+0137_daily_bin470.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/587758/ltcube_361152001_361411201_4FGL_J0739.2+0137_daily_bin470.fits
.....................!
real 191.26
user 184.91
sys 5.97

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/587758/ft1_filtered_4FGL_J0739.2+0137_daily_bin470.fits scfile=/scratch/kocevski/587758/ft2_4FGL_J0739.2+0137_daily_bin470.fits outfile=/scratch/kocevski/587758/cmap_361152001_361411201_4FGL_J0739.2+0137_daily_bin470.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.43
user 0.37
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587758/ft1_filtered_4FGL_J0739.2+0137_daily_bin470.fits scfile=/scratch/kocevski/587758/ft2_4FGL_J0739.2+0137_daily_bin470.fits outfile=/scratch/kocevski/587758/cmap_HighResolution_361152001_361411201_4FGL_J0739.2+0137_daily_bin470.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.40
user 0.37
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50214E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    93.614       1.0000         .10000E-03   10000.    
     4 'norm      '    11.893       1.0000         .10000E-03   10000.    
     5 'norm      '    .17696E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.595       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9225       1.0000         .10000E-03   10000.    
    12 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18090E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14456E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1537       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4390       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2628       1.0000         .10000E-03   10000.    
    21 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.957       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .69031E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2626       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97027       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=   8162.142     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2958 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10027E-03    8.2869        .63451E-06** at limit **
   2  norm          .10000E-03    12.133       -.31423E-05** at limit **
   3  Prefactor     93.607        63.316       -.61672E-05   -.13807E-04
   4  norm          11.895        6.7912       -.19235E-06   -.16842E-03
   5  norm          .22845E-01    .80052        .20475E-06   -.18911E-03
   6  Prefactor     .10000E-03    19.565       -.14135E-04** at limit **
   7  Prefactor     .10000E-03    2.6298       -.18750E-06** at limit **
   8  Prefactor     .10000E-03    6.1029       -.10361E-05** at limit **
   9  Prefactor     11.588        33.848       -.10028E-04   -.26159E-05
  10  norm          3.1295        1.7926        .18496E-07   -.21358E-04
  11  Prefactor     5.9255        44.631        .40808E-05   -.53321E-05
  12  norm          .10000E-03    31.538        .58645E-05** at limit **
  13  Prefactor     .10001E-03    2.5796       -.17247E-05** at limit **
  14  norm          .10000E-03    17.285        .29449E-05** at limit **
  15  Prefactor     .10000E-03    6.3889        .44274E-05** at limit **
  16  Prefactor     .10000E-03    11.501       -.45354E-05** at limit **
  17  Prefactor     .10000E-03    15.010        .12988E-04** at limit **
  18  norm          1.1455        44.100       -.75906E-05   -.21268E-03
  19  norm          2.4387        2.0477        .24138E-06    .15657E-02
  20  norm          1.2627        1.5583       -.17283E-06   -.71783E-03
  21  norm          .10000E-03    9.1874        .23115E-05** at limit **
  22  norm          11.957        6.2031       -.58394E-06   -.16978E-02
  23  Prefactor     .10000E-03    159.60       -.50922E-04** at limit **
  24  Normalizat    1.2626        .20922        .32695E-05    .34357E-03
  25  Prefactor     .97030        .72686E-01   -.11239E-06    .38416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100268
  norm       = 0.0001
  Prefactor  = 93.6075
  norm       = 11.8948
  norm       = 0.0228454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5882
  norm       = 3.12952
  Prefactor  = 5.92549
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14549
  norm       = 2.43872
  norm       = 1.26267
  norm       = 0.0001
  norm       = 11.9567
  Prefactor  = 0.000100003
  Normalizat = 1.26262
  Prefactor  = 0.970303
 **********
 **   18 **HESSE 
 **********

 FCN=   8162.142     FROM HESSE     STATUS=OK           435 CALLS     3393 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10027E-03    107.06        .48803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     93.607        63.473        .41537E-04   -1.3770    
   4  norm          11.895        6.7882        .11616E-03   -1.5018    
   5  norm          .22845E-01    1.9118        .27929E-01   -1.5678    
   6  Prefactor     .10000E-03    19.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6341        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.588        33.966        .11765E-03   -1.5027    
  10  norm          3.1295        1.7889        .88095E-04   -1.5354    
  11  Prefactor     5.9255        44.519        .16501E-03   -1.5221    
  12  norm          .10000E-03    32.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    6.5364        .27586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1455        46.354        .43028E-02   -1.5494    
  19  norm          2.4387        2.0535        .57575E-03   -1.5396    
  20  norm          1.2627        1.5319        .12115E-03   -1.5483    
  21  norm          .10000E-03    9.1947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.957        6.2548        .57923E-03   -1.5016    
  23  Prefactor     .10000E-03    161.86        .41975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2626        .21923        .38703E-03   -.84689    
  25  Prefactor     .97030        .75853E-01    .15668E-03   -.93726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62349e-09
Minuit parameter uncertainties:
  1  0.01074
  2  2.20328e-06
  3  63.5195
  4  6.78868
  5  0.417075
  6  6.5467e-06
  7  1.60952e-06
  8  6.55916e-06
  9  34.0227
  10  1.7889
  11  32.5171
  12  0.000125729
  13  0.000509188
  14  2.8907e-05
  15  5.95426e-06
  16  0.000119623
  17  3.64583e-06
  18  14.5851
  19  2.0536
  20  1.53192
  21  3.72399e-06
  22  6.25514
  23  0.00136656
  24  0.219394
  25  0.0758616
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.130e+00  1.789e+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.703e-01  7.586e-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.263e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.75e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.43e-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) = 8161.48257143
delta logL = 0.659896841141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8161.45543757
delta logL = 0.687030698401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0941       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7650       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96735       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=   8161.455     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0939        1.7608        .57639E-02    .30807E-04
   2  alpha         1.7648        .37149        .34269       -.26226E-04
   3  Normalizat    1.2807        .19043        .86877E-01    .80621E-04
   4  Prefactor     .96738        .68781E-01    .45858E-01   -.80089E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.09395
  alpha      = 1.76481
  Normalizat = 1.28067
  Prefactor  = 0.967379
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.455     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0939        1.8436        .86678E-04   -1.5356    
   2  alpha         1.7648        .43440        .13561E-01   -.29849    
   3  Normalizat    1.2807        .20184        .38467E-03   -.84145    
   4  Prefactor     .96738        .72948E-01    .15685E-03   -.93825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72579e-10
Minuit parameter uncertainties:
  1  1.84359
  2  0.436829
  3  0.20196
  4  0.0729555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587758': 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) = 8161.45543728
delta logL = 0.687030992743

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.094e+00  1.844e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.765e+00  4.368e-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.674e-01  7.296e-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.281e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.92
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.76 +/- 0.44
Photon Flux (Free Index): 5.51e-08 +/- 3.69e-08
Energy Flux (Free Index): 3.91e-05 +/- 2.86e-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/587758/cmap_HighResolution_361152001_361411201_4FGL_J0739.2+0137_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.75e-08', energy_flux2='3.91e-05', photon_flux_error='4.43e-08', dlogl='6.87e-01', energy_flux='2.51e-05', photon_flux2='5.51e-08', job_status='DONE', time_completed='2021-08-27 20:24:00.438887', photon_index_error2='0.44', photon_index2='1.76', ts='6.57', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.26', time_epoch_completed='1630121040.44', return_code='0', job_id='587758', GAL2='0.97', EG2='1.28', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.69e-08', ts2='7.92', photon_index='2.31' WHERE bin_id='470' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:24:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 587758: <4FGL_J0739.2+0137_daily_bin470> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin470 114.82 1.6216 361152001 361411201 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 :                                   777.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

