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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1388
RA = 114.82, Dec = 1.6216
tmin = 599097601, tmax = 599356801
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='594698', job_status='RUN', time_executed='2021-08-27 20:39:17.132132', time_epoch_executed='1630121957.13' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594698/ft1_4FGL_J0739.2+0137_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594698/ft2_4FGL_J0739.2+0137_daily_bin1388.fits


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

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

Done.
real 3.51
user 2.62
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594698/ft1_filtered_4FGL_J0739.2+0137_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/594698/ft2_4FGL_J0739.2+0137_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/594698/ltcube_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.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/594698/ft2_4FGL_J0739.2+0137_daily_bin1388.fits
.....................!
real 13.54
user 12.24
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594698/ft1_filtered_4FGL_J0739.2+0137_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/594698/ft2_4FGL_J0739.2+0137_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/594698/ltcube_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.fits outfile=/scratch/kocevski/594698/expmap_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.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/594698/ltcube_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.fits
.....................!
real 191.49
user 186.36
sys 4.78

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/594698/ft1_filtered_4FGL_J0739.2+0137_daily_bin1388.fits scfile=/scratch/kocevski/594698/ft2_4FGL_J0739.2+0137_daily_bin1388.fits outfile=/scratch/kocevski/594698/cmap_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.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.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594698/ft1_filtered_4FGL_J0739.2+0137_daily_bin1388.fits scfile=/scratch/kocevski/594698/ft2_4FGL_J0739.2+0137_daily_bin1388.fits outfile=/scratch/kocevski/594698/cmap_HighResolution_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.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.28
user 0.39
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    181.50       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12546E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23278E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13649E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    37.396       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.589       1.0000         .10000E-03   10000.    
    14 'norm      '    63.050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.9257       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    30.464       1.0000         .10000E-03   10000.    
    22 'norm      '    39.296       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95287       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=   1041.576     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2898 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          181.49        102.72       -.69797E-05    .34819E-05
   2  norm          .10000E-03    176.11        .92596E-04** at limit **
   3  Prefactor     .10000E-03    2200.0       -.12532E-02** at limit **
   4  norm          .10000E-03    41.014        .19725E-05** at limit **
   5  norm          .10000E-03    13.499        .40565E-08** at limit **
   6  Prefactor     .10000E-03    957.67       -.54814E-03** at limit **
   7  Prefactor     .10000E-03    23.271       -.31803E-08** at limit **
   8  Prefactor     20.750        94.677       -.12258E-04    .30517E-04
   9  Prefactor     .10000E-03    409.41        .22513E-03** at limit **
  10  norm          .10000E-03    11.295       -.38758E-07** at limit **
  11  Prefactor     .10000E-03    142.19       -.60775E-04** at limit **
  12  norm          37.397        71.666       -.46998E-06    .44009E-04
  13  Prefactor     39.576        35.466       -.10790E-05    .75307E-04
  14  norm          63.072        111.77        .20500E-04    .81360E-04
  15  Prefactor     .10001E-03    145.02       -.49452E-04** at limit **
  16  Prefactor     .10000E-03    16.653        .11471E-06** at limit **
  17  Prefactor     .10000E-03    74.206        .22314E-04** at limit **
  18  norm          7.9330        27.883       -.38640E-05   -.29771E-03
  19  norm          .10000E-03    2.8748       -.33770E-07** at limit **
  20  norm          .10000E-03    4.1618       -.26870E-06** at limit **
  21  norm          30.450        56.022       -.22785E-05    .42160E-05
  22  norm          39.303        21.783        .56634E-06    .56380E-04
  23  Prefactor     .10000E-03    54.191       -.98633E-05** at limit **
  24  Normalizat    .10000E-01    .36489       -.27720E-05** at limit **
  25  Prefactor     .95299        .19335        .31245E-05    .13586E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 181.487
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7495
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 37.3971
  Prefactor  = 39.5764
  norm       = 63.0723
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.93299
  norm       = 0.0001
  norm       = 0.0001
  norm       = 30.4499
  norm       = 39.3028
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.952986
 **********
 **   18 **HESSE 
 **********

 FCN=   1041.576     FROM HESSE     STATUS=OK           411 CALLS     3309 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          181.49        102.99        .14982E-03   -1.3005    
   2  norm          .10000E-03    176.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2198.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    41.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.499        .11585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    957.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.273        .15213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.750        97.175        .87909E-04   -1.4797    
   9  Prefactor     .10000E-03    409.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.395        .10593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    142.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          37.397        72.406        .65539E-04   -1.4484    
  13  Prefactor     39.576        35.408        .63704E-04   -1.4449    
  14  norm          63.072        111.62        .50536E-04   -1.4118    
  15  Prefactor     .10001E-03    145.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.661        .12859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    74.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.9330        27.866        .71212E-03   -1.5145    
  19  norm          .10000E-03    2.8865        .53408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.4074        .12555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          30.450        55.868        .72591E-04   -1.4604    
  22  norm          39.303        21.649        .63941E-04   -1.4453    
  23  Prefactor     .10000E-03    54.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .44887        .10765E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .95299        .18864        .15207E-03   -.94313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24769e-09
Minuit parameter uncertainties:
  1  103.095
  2  0.00010009
  3  5.2635e-05
  4  5.95921e-05
  5  5.46459e-07
  6  0.000433655
  7  9.52189e-06
  8  90.0475
  9  0.000227294
  10  2.17636e-05
  11  0.000133472
  12  72.577
  13  35.4272
  14  111.998
  15  0.00215229
  16  3.5962e-05
  17  1.16073e-05
  18  27.9117
  19  2.09202e-06
  20  8.61822e-05
  21  55.9643
  22  21.6532
  23  3.62769e-06
  24  6.86614e-06
  25  0.188773
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.000e-04  2.176e-05  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.530e-01  1.888e-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.000e-02  6.866e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/594698/likelihoodResults_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.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) = 1041.57606729
delta logL = -0.000426854553552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1041.57564339
delta logL = -2.95550739793e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14847E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2620       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95273       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=   1041.576     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      209 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    17.414        .90712E-02** at limit **
   2  alpha         2.1924        3.4945        .41390        .31092E-04
   3  Normalizat    .10000E-01    .30589        .30372    ** at limit **
   4  Prefactor     .95298        .15397        .34411E-01   -.69847E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  alpha      = 2.19245
  Normalizat = 0.01
  Prefactor  = 0.952984
 **********
 **   18 **HESSE 
 **********

 FCN=   1041.576     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    16.421        .12673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1924        3.4740        .16556       -.12333    
   3  Normalizat    .10000E-01    .38046        .10765E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95298        .14144        .15207E-03   -.94314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28678e-09
Minuit parameter uncertainties:
  1  0.00113581
  2  2.48496
  3  1.42531e-06
  4  0.141496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594698': 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) = 1041.57563908
delta logL = 1.35343088914e-06

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.000e-04  1.136e-03  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.192e+00  2.485e+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.530e-01  1.415e-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.000e-02  1.425e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/594698/cmap_HighResolution_599097601_599356801_4FGL_J0739.2+0137_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-04', job_status='DONE', photon_flux_upper_limit='8.26e-07', time_completed='2021-08-27 20:47:18.342393', job_id='594698', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630122438.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1388' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 594698: <4FGL_J0739.2+0137_daily_bin1388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1388 114.82 1.6216 599097601 599356801 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 :                                   389.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

