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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1334
RA = 114.82, Dec = 1.6216
tmin = 585100801, tmax = 585360001
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='593539', job_status='RUN', time_executed='2021-08-27 20:35:09.348626', time_epoch_executed='1630121709.35' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593539/ft1_4FGL_J0739.2+0137_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593539/ft2_4FGL_J0739.2+0137_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593539/ft1_4FGL_J0739.2+0137_daily_bin1334.fits outfile=/scratch/kocevski/593539/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1334.fits ra=114.82 dec=1.6216 rad=12.0 tmin=585100801.0 tmax=585360001.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.28
user 2.81
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593539/ft2_4FGL_J0739.2+0137_daily_bin1334.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/593539/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/593539/ft1_filtered_4FGL_J0739.2+0137_daily_bin1334.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 0.75
user 0.32
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593539/ft1_filtered_4FGL_J0739.2+0137_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/593539/ft2_4FGL_J0739.2+0137_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/593539/ltcube_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.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/593539/ft2_4FGL_J0739.2+0137_daily_bin1334.fits
.....................!
real 12.75
user 12.12
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593539/ft1_filtered_4FGL_J0739.2+0137_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/593539/ft2_4FGL_J0739.2+0137_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/593539/ltcube_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.fits outfile=/scratch/kocevski/593539/expmap_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.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/593539/ltcube_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.fits
.....................!
real 191.33
user 185.71
sys 5.24

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/593539/ft1_filtered_4FGL_J0739.2+0137_daily_bin1334.fits scfile=/scratch/kocevski/593539/ft2_4FGL_J0739.2+0137_daily_bin1334.fits outfile=/scratch/kocevski/593539/cmap_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.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 0.78
user 0.38
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593539/ft1_filtered_4FGL_J0739.2+0137_daily_bin1334.fits scfile=/scratch/kocevski/593539/ft2_4FGL_J0739.2+0137_daily_bin1334.fits outfile=/scratch/kocevski/593539/cmap_HighResolution_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.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 0.78
user 0.37
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.344       1.0000         .10000E-03   10000.    
     2 'norm      '    76.147       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20147E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.473       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14571E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13477E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .88504       1.0000         .10000E-03   10000.    
    14 'norm      '    .14982E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13938E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    225.07       1.0000         .10000E-03   10000.    
    18 'norm      '    15.089       1.0000         .10000E-03   10000.    
    19 'norm      '    12.592       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .51923E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15465E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10022E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95905       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=   2145.500     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3336 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.353        32.994        .11412E-07    .15184E-04
   2  norm          76.137        85.108        .11219E-06    .45961E-05
   3  Prefactor     .10000E-03    1009.2        .41756E-06** at limit **
   4  norm          .10000E-03    7.8974        .17376E-06** at limit **
   5  norm          .10000E-03    15.785        .18226E-05** at limit **
   6  Prefactor     82.884        389.58       -.61152E-05    .10523E-05
   7  Prefactor     .10000E-03    84.243        .35930E-05** at limit **
   8  Prefactor     .10000E-03    44.838        .18002E-06** at limit **
   9  Prefactor     .10000E-03    257.37        .99679E-06** at limit **
  10  norm          15.267        11.782       -.50019E-06    .65150E-04
  11  Prefactor     .10000E-03    29.033        .15218E-07** at limit **
  12  norm          .10000E-03    10.421        .11395E-07** at limit **
  13  Prefactor     .10021E-03    9835.1        .10627E-04** at limit **
  14  norm          .10000E-03    352.77       -.76726E-06** at limit **
  15  Prefactor     .10000E-03    267.66        .39018E-06** at limit **
  16  Prefactor     .10000E-03    15.459        .33170E-06** at limit **
  17  Prefactor     224.73        273.75        .85942E-05    .78779E-05
  18  norm          15.079        37.541        .16552E-06    .18840E-04
  19  norm          12.587        6.8115       -.19017E-06    .81553E-04
  20  norm          .10000E-03    2.3921        .93063E-07** at limit **
  21  norm          .10000E-03    382.09       -.63159E-05** at limit **
  22  norm          .10017E-03    21.978       -.52653E-06** at limit **
  23  Prefactor     .10000E-03    517.62       -.36249E-05** at limit **
  24  Normalizat    .10000E-01    .39936        .42975E-05** at limit **
  25  Prefactor     .95875        .10127       -.13665E-05    .16236E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.3533
  norm       = 76.1367
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 82.8842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2671
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100209
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 224.734
  norm       = 15.0795
  norm       = 12.587
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100168
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.958749
 **********
 **   18 **HESSE 
 **********

 FCN=   2145.500     FROM HESSE     STATUS=OK           415 CALLS     3751 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.353        33.244        .82905E-04   -1.4741    
   2  norm          76.137        85.390        .46015E-04   -1.3961    
   3  Prefactor     .10000E-03    1009.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.9297        .12715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.880        .17935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     82.884        391.59        .22115E-03   -1.3885    
   7  Prefactor     .10000E-03    84.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    257.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.267        11.784        .10249E-03   -1.4926    
  11  Prefactor     .10000E-03    29.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.424        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10021E-03    9831.0        .25506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    352.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    267.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.458        .17773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     224.73        275.46        .13484E-03   -1.2698    
  18  norm          15.079        37.618        .10311E-03   -1.4931    
  19  norm          12.587        6.8074        .84724E-04   -1.4998    
  20  norm          .10000E-03    2.4334        .13939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    386.01        .21139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10017E-03    144.36        .39971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    518.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .98904        .16542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .95875        .10427        .13369E-03   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6174e-09
Minuit parameter uncertainties:
  1  33.27
  2  85.5275
  3  0.000843388
  4  1.42246e-05
  5  1.58472e-05
  6  364.276
  7  3.24125e-05
  8  8.93325e-05
  9  0.000223898
  10  11.7861
  11  2.28667e-06
  12  3.94953e-06
  13  0.126654
  14  0.000317191
  15  0.000192715
  16  1.43025e-05
  17  277.071
  18  37.6773
  19  6.80786
  20  6.80669e-06
  21  0.000645733
  22  0.00986725
  23  0.000850611
  24  4.30563e-05
  25  0.104295
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.527e+01  1.179e+01  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.587e-01  1.043e-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  4.306e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.78e-07 +/- 2.92e-07
Energy Flux (Fixed Index): 1.22e-04 +/- 9.44e-05

TS (Fixed Index): 3.63
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 1.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593539/likelihoodResults_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.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) = 2144.31485044
delta logL = 1.1852614923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2144.31125255
delta logL = 1.18885937971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.137       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8751       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94026       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=   2144.311     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      245 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.130        166.91        .30012E-02    .27661E-03
   2  alpha         3.8765        2.6580        .30088        .23721E-04
   3  Normalizat    .10000E-01    .18412        .32094    ** at limit **
   4  Prefactor     .94036        .75622E-01    .30338E-01    .16375E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1303
  alpha      = 3.87652
  Normalizat = 0.01
  Prefactor  = 0.940359
 **********
 **   18 **HESSE 
 **********

 FCN=   2144.311     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.130        11.125        .84205E-04   -1.5041    
   2  alpha         3.8765        1.0486        .13468E-02    .58309    
   3  Normalizat    .10000E-01    .32793        .13032E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94036        .87986E-01    .13408E-03   -.94745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66029e-11
Minuit parameter uncertainties:
  1  11.1268
  2  1.0987
  3  3.95718e-06
  4  0.087999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593539': 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) = 2144.31125026
delta logL = 1.1888616669

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.113e+01  1.113e+01  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  3.877e+00  1.099e+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.404e-01  8.800e-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.000e-02  3.957e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 114.820 1.622
Photon Index (Free Index): 3.88 +/- 1.10
Photon Flux (Free Index): 1.38e-06 +/- 1.02e-06
Energy Flux (Free Index): 2.16e-04 +/- 1.35e-04

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/593539/cmap_HighResolution_585100801_585360001_4FGL_J0739.2+0137_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-04', comment='SUCCESS', photon_flux='3.78e-07', energy_flux2='2.16e-04', photon_flux_error='2.92e-07', dlogl='1.19e+00', energy_flux='1.22e-04', photon_flux2='1.38e-06', job_status='DONE', time_completed='2021-08-27 20:42:42.099500', photon_index_error2='1.10', photon_index2='3.88', ts='3.63', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.07e-06', energy_flux_error2='1.35e-04', EG='0.01', time_epoch_completed='1630122162.1', return_code='0', job_id='593539', GAL2='0.94', EG2='0.01', return_code2='0', energy_flux_error='9.44e-05', photon_flux_error2='1.02e-06', ts2='6.01', photon_index='2.31' WHERE bin_id='1334' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:42:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 593539: <4FGL_J0739.2+0137_daily_bin1334> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1334> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 20:30:49 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:30:58 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:30:58 2021
Terminated at Fri Aug 27 20:42:42 2021
Results reported at Fri Aug 27 20:42:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1334 114.82 1.6216 585100801 585360001 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 :                                   450.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            713 sec.

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

