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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1442
RA = 114.82, Dec = 1.6216
tmin = 613094401, tmax = 613353601
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='594781', job_status='RUN', time_executed='2021-08-27 20:38:04.508281', time_epoch_executed='1630121884.51' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594781

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594781/ft1_4FGL_J0739.2+0137_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594781/ft2_4FGL_J0739.2+0137_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594781/ft1_4FGL_J0739.2+0137_daily_bin1442.fits outfile=/scratch/kocevski/594781/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1442.fits ra=114.82 dec=1.6216 rad=12.0 tmin=613094401.0 tmax=613353601.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.23
user 2.74
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594781/ft1_filtered_4FGL_J0739.2+0137_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/594781/ft2_4FGL_J0739.2+0137_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/594781/ltcube_613094401_613353601_4FGL_J0739.2+0137_daily_bin1442.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/594781/ft2_4FGL_J0739.2+0137_daily_bin1442.fits
.....................!
real 14.87
user 14.19
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594781/ft1_filtered_4FGL_J0739.2+0137_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/594781/ft2_4FGL_J0739.2+0137_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/594781/ltcube_613094401_613353601_4FGL_J0739.2+0137_daily_bin1442.fits outfile=/scratch/kocevski/594781/expmap_613094401_613353601_4FGL_J0739.2+0137_daily_bin1442.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/594781/ltcube_613094401_613353601_4FGL_J0739.2+0137_daily_bin1442.fits
.....................!
real 190.46
user 185.64
sys 4.46

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/594781/ft1_filtered_4FGL_J0739.2+0137_daily_bin1442.fits scfile=/scratch/kocevski/594781/ft2_4FGL_J0739.2+0137_daily_bin1442.fits outfile=/scratch/kocevski/594781/cmap_613094401_613353601_4FGL_J0739.2+0137_daily_bin1442.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.80
user 0.38
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594781/ft1_filtered_4FGL_J0739.2+0137_daily_bin1442.fits scfile=/scratch/kocevski/594781/ft2_4FGL_J0739.2+0137_daily_bin1442.fits outfile=/scratch/kocevski/594781/cmap_HighResolution_613094401_613353601_4FGL_J0739.2+0137_daily_bin1442.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.79
user 0.41
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.092       1.0000         .10000E-03   10000.    
     2 'norm      '    30.663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61622E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6166       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.8427       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7259       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7441       1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.941       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5332       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79943       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=   8237.336     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2919 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.095        21.626        .12115E-06    .44652E-04
   2  norm          30.674        37.774        .12868E-04    .33699E-04
   3  Prefactor     .10000E-03    60.721        .24835E-05** at limit **
   4  norm          .10000E-03    6.4986       -.10527E-05** at limit **
   5  norm          1.8163        3.1190        .40568E-06    .10396E-02
   6  Prefactor     .10044E-03    526.48       -.30037E-03** at limit **
   7  Prefactor     .10000E-03    3.5242        .54413E-07** at limit **
   8  Prefactor     3.6203        18.536       -.36455E-06   -.58896E-04
   9  Prefactor     .10000E-03    23.496       -.11306E-04** at limit **
  10  norm          6.8427        2.5875        .76157E-07    .13883E-02
  11  Prefactor     .10000E-03    26.082        .10079E-04** at limit **
  12  norm          4.7332        15.609       -.88841E-06   -.62388E-04
  13  Prefactor     3.7441        3.7580       -.44018E-06   -.42487E-03
  14  norm          .10000E-03    12.282        .25394E-05** at limit **
  15  Prefactor     7.1264        9.1930       -.89135E-06   -.78693E-03
  16  Prefactor     .10000E-03    9.1493       -.28719E-05** at limit **
  17  Prefactor     .10000E-03    9.8260       -.27537E-06** at limit **
  18  norm          .10000E-03    7.1716        .15660E-05** at limit **
  19  norm          .10000E-03    1.8155        .51329E-07** at limit **
  20  norm          11.941        2.6158        .62730E-08    .11788E-03
  21  norm          .10000E-03    7.4293        .37712E-06** at limit **
  22  norm          .10000E-03    2.8884       -.23570E-07** at limit **
  23  Prefactor     .10000E-03    10.011        .62121E-06** at limit **
  24  Normalizat    1.5332        .20927        .16088E-05    .45304E-03
  25  Prefactor     .79945        .77146E-01   -.90910E-06    .15248E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 37.0952
  norm       = 30.6744
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.81635
  Prefactor  = 0.000100438
  Prefactor  = 0.0001
  Prefactor  = 3.62035
  Prefactor  = 0.0001
  norm       = 6.84268
  Prefactor  = 0.0001
  norm       = 4.73315
  Prefactor  = 3.7441
  norm       = 0.0001
  Prefactor  = 7.12644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.9407
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53322
  Prefactor  = 0.799454
 **********
 **   18 **HESSE 
 **********

 FCN=   8237.336     FROM HESSE     STATUS=OK           419 CALLS     3338 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.095        21.850        .65806E-04   -1.4489    
   2  norm          30.674        37.986        .72357E-04   -1.4600    
   3  Prefactor     .10000E-03    60.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.6117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8163        3.0962        .19463E-03   -1.5438    
   6  Prefactor     .10044E-03    525.06        .42100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5335        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6203        18.529        .21246E-03   -1.5327    
   9  Prefactor     .10000E-03    23.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.8427        2.5894        .85354E-04   -1.5185    
  11  Prefactor     .10000E-03    26.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7332        15.630        .18510E-03   -1.5273    
  13  Prefactor     3.7441        3.7577        .16957E-03   -1.5321    
  14  norm          .10000E-03    12.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1264        9.2107        .75137E-03   -1.5174    
  16  Prefactor     .10000E-03    9.2621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.2144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8750        .23840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.941        2.6149        .66024E-04   -1.5017    
  21  norm          .10000E-03    7.4381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9541        .15051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5332        .22496        .36411E-03   -.76849    
  25  Prefactor     .79945        .83752E-01    .17227E-03   -.99748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23497e-09
Minuit parameter uncertainties:
  1  21.8545
  2  38.0161
  3  4.92709e-06
  4  4.8781e-05
  5  3.09649
  6  0.0305865
  7  6.01735e-06
  8  16.3886
  9  2.60575e-05
  10  2.58944
  11  1.65682e-05
  12  15.6433
  13  3.75789
  14  1.69864e-05
  15  9.21258
  16  3.02051e-06
  17  2.57676e-06
  18  6.74183e-06
  19  2.988e-07
  20  2.61495
  21  1.85005e-06
  22  3.43671e-06
  23  1.54234e-06
  24  0.225108
  25  0.0837649
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  6.843e+00  2.589e+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:  7.995e-01  8.376e-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.533e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.25
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 6.41e-08
Energy Flux (Fixed Index): 5.48e-05 +/- 2.07e-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) = 8237.03000894
delta logL = 0.306148063155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8237.00500714
delta logL = 0.331149869413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7278       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0146       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79542       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=   8237.005     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7276        2.7011        .38674E-02   -.42731E-04
   2  alpha         2.0145        .33064        .28092       -.30187E-04
   3  Normalizat    1.5600        .19938        .81712E-01    .30381E-05
   4  Prefactor     .79539        .70385E-01    .43658E-01   -.96139E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.72756
  alpha      = 2.01446
  Normalizat = 1.56005
  Prefactor  = 0.795392
 **********
 **   18 **HESSE 
 **********

 FCN=   8237.005     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7276        2.6867        .87541E-04   -1.5189    
   2  alpha         2.0145        .35617        .11437E-01   -.19546    
   3  Normalizat    1.5600        .21375        .36164E-03   -.76105    
   4  Prefactor     .79539        .75035E-01    .17265E-03   -.99898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02981e-12
Minuit parameter uncertainties:
  1  2.68675
  2  0.357437
  3  0.213872
  4  0.0750443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594781': 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) = 8237.00500697
delta logL = 0.331150035581

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  6.728e+00  2.687e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.014e+00  3.574e-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:  7.954e-01  7.504e-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.560e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.80
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.01 +/- 0.36
Photon Flux (Free Index): 1.36e-07 +/- 6.71e-08
Energy Flux (Free Index): 6.31e-05 +/- 2.80e-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/594781/cmap_HighResolution_613094401_613353601_4FGL_J0739.2+0137_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='6.31e-05', photon_flux_error='6.41e-08', dlogl='3.31e-01', energy_flux='5.48e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-08-27 20:51:09.048284', photon_index_error2='0.36', photon_index2='2.01', ts='16.25', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.53', time_epoch_completed='1630122669.05', return_code='0', job_id='594781', GAL2='0.80', EG2='1.56', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='6.71e-08', ts2='16.80', photon_index='2.31' WHERE bin_id='1442' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:51:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 594781: <4FGL_J0739.2+0137_daily_bin1442> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1442 114.82 1.6216 613094401 613353601 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

