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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin878
RA = 114.82, Dec = 1.6216
tmin = 466905601, tmax = 467164801
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='591857', job_status='RUN', time_executed='2021-08-27 20:27:51.752542', time_epoch_executed='1630121271.75' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='878'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591857

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591857/ft1_4FGL_J0739.2+0137_daily_bin878.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591857/ft2_4FGL_J0739.2+0137_daily_bin878.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591857/ft1_4FGL_J0739.2+0137_daily_bin878.fits outfile=/scratch/kocevski/591857/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin878.fits ra=114.82 dec=1.6216 rad=12.0 tmin=466905601.0 tmax=467164801.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.86
user 3.41
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591857/ft1_filtered_4FGL_J0739.2+0137_daily_bin878.fits" evtable="EVENTS" scfile=/scratch/kocevski/591857/ft2_4FGL_J0739.2+0137_daily_bin878.fits sctable="SC_DATA" outfile=/scratch/kocevski/591857/ltcube_466905601_467164801_4FGL_J0739.2+0137_daily_bin878.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/591857/ft2_4FGL_J0739.2+0137_daily_bin878.fits
.....................!
real 12.00
user 11.53
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591857/ft1_filtered_4FGL_J0739.2+0137_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/591857/ft2_4FGL_J0739.2+0137_daily_bin878.fits sctable="SC_DATA" expcube=/scratch/kocevski/591857/ltcube_466905601_467164801_4FGL_J0739.2+0137_daily_bin878.fits outfile=/scratch/kocevski/591857/expmap_466905601_467164801_4FGL_J0739.2+0137_daily_bin878.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/591857/ltcube_466905601_467164801_4FGL_J0739.2+0137_daily_bin878.fits
.....................!
real 191.04
user 185.39
sys 5.30

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/591857/ft1_filtered_4FGL_J0739.2+0137_daily_bin878.fits scfile=/scratch/kocevski/591857/ft2_4FGL_J0739.2+0137_daily_bin878.fits outfile=/scratch/kocevski/591857/cmap_466905601_467164801_4FGL_J0739.2+0137_daily_bin878.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.69
user 0.37
sys 0.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591857/ft1_filtered_4FGL_J0739.2+0137_daily_bin878.fits scfile=/scratch/kocevski/591857/ft2_4FGL_J0739.2+0137_daily_bin878.fits outfile=/scratch/kocevski/591857/cmap_HighResolution_466905601_467164801_4FGL_J0739.2+0137_daily_bin878.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.70
user 0.38
sys 0.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.875       1.0000         .10000E-03   10000.    
     2 'norm      '    21.877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .92217       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.595       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6134       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3152       1.0000         .10000E-03   10000.    
     9 'Prefactor '    125.84       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41523E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.109       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.774       1.0000         .10000E-03   10000.    
    18 'norm      '    9.5538       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3425       1.0000         .10000E-03   10000.    
    20 'norm      '    .10297E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5870       1.0000         .10000E-03   10000.    
    22 'norm      '    10.350       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0308       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95040       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0025       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=   10089.03     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2915 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.872        11.112       -.29860E-06    .15206E-04
   2  norm          21.875        23.643       -.28245E-05    .35462E-05
   3  Prefactor     .10000E-03    25.583        .12549E-05** at limit **
   4  norm          .91962        1.8463        .31646E-06   -.32133E-02
   5  norm          1.4427        1.7956        .19015E-05    .11349E-02
   6  Prefactor     31.587        43.465       -.10758E-04   -.33811E-04
   7  Prefactor     1.6127        4.0917        .26611E-06   -.15271E-02
   8  Prefactor     7.3135        11.423       -.25785E-06    .36506E-06
   9  Prefactor     125.81        50.142       -.22858E-04   -.13598E-03
  10  norm          7.3434        2.4314        .84564E-06   -.12932E-03
  11  Prefactor     .10000E-03    9.4735       -.10766E-05** at limit **
  12  norm          2.8224        8.4708       -.15265E-06   -.30736E-03
  13  Prefactor     .10012E-03    1.2453        .55932E-06** at limit **
  14  norm          17.114        13.794        .19084E-05   -.64071E-04
  15  Prefactor     .10000E-03    5.3447        .27835E-06** at limit **
  16  Prefactor     .10000E-03    4.6239       -.49367E-07** at limit **
  17  Prefactor     33.783        34.858        .11198E-04   -.11865E-04
  18  norm          9.5545        8.3225       -.30979E-06   -.13764E-04
  19  norm          1.3422        1.5293       -.13549E-06   -.59108E-04
  20  norm          .10000E-03    .64721        .93666E-07** at limit **
  21  norm          8.5867        21.653       -.75496E-05   -.85073E-04
  22  norm          10.350        4.5948       -.30089E-06   -.43721E-04
  23  Prefactor     7.0467        25.825        .36000E-04    .13947E-04
  24  Normalizat    .95028        .20355       -.94885E-06   -.91558E-04
  25  Prefactor     1.0026        .67672E-01    .60115E-06   -.41896E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8717
  norm       = 21.8749
  Prefactor  = 0.0001
  norm       = 0.919622
  norm       = 1.44269
  Prefactor  = 31.5875
  Prefactor  = 1.61268
  Prefactor  = 7.31349
  Prefactor  = 125.812
  norm       = 7.34342
  Prefactor  = 0.0001
  norm       = 2.82245
  Prefactor  = 0.000100119
  norm       = 17.1144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.7831
  norm       = 9.55454
  norm       = 1.3422
  norm       = 0.0001
  norm       = 8.58674
  norm       = 10.3498
  Prefactor  = 7.04674
  Normalizat = 0.950284
  Prefactor  = 1.0026
 **********
 **   18 **HESSE 
 **********

 FCN=   10089.03     FROM HESSE     STATUS=OK           439 CALLS     3354 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.872        11.194        .11625E-03   -1.5019    
   2  norm          21.875        23.768        .85636E-04   -1.4772    
   3  Prefactor     .10000E-03    25.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .91962        6.5101        .23525E-02   -1.5516    
   5  norm          1.4427        1.7712        .14034E-03   -1.5468    
   6  Prefactor     31.587        43.412        .71284E-04   -1.4583    
   7  Prefactor     1.6127        4.2247        .16408E-02   -1.5454    
   8  Prefactor     7.3135        11.422        .14830E-03   -1.5167    
   9  Prefactor     125.81        50.327        .17942E-03   -1.3460    
  10  norm          7.3434        2.4298        .84580E-04   -1.5166    
  11  Prefactor     .10000E-03    9.4784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8224        8.4957        .12104E-02   -1.5372    
  13  Prefactor     .10012E-03    14.495        .21395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.114        13.784        .96828E-04   -1.4880    
  15  Prefactor     .10000E-03    5.3557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.783        34.862        .68953E-04   -1.4545    
  18  norm          9.5545        8.3240        .12965E-03   -1.5090    
  19  norm          1.3422        1.5137        .12835E-03   -1.5476    
  20  norm          .10000E-03    1.3140        .15645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5867        21.576        .13679E-03   -1.5122    
  22  norm          10.350        4.5955        .12455E-03   -1.5064    
  23  Prefactor     7.0467        25.803        .15129E-03   -1.5177    
  24  Normalizat    .95028        .21306        .44222E-03   -.94715    
  25  Prefactor     1.0026        .73966E-01    .15450E-03   -.92643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59437e-08
Minuit parameter uncertainties:
  1  11.1957
  2  23.7785
  3  2.20841e-05
  4  4.8941
  5  1.77127
  6  43.4557
  7  4.22547
  8  11.4257
  9  50.3439
  10  2.4298
  11  1.62479e-06
  12  8.4993
  13  0.00262953
  14  13.7863
  15  3.65985e-05
  16  1.11408e-06
  17  34.8831
  18  8.32506
  19  1.51375
  20  1.0215e-05
  21  21.5952
  22  4.59564
  23  25.8434
  24  0.21325
  25  0.0739735
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  7.343e+00  2.430e+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:  1.003e+00  7.397e-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:  9.503e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.96
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.82e-07 +/- 6.02e-08
Energy Flux (Fixed Index): 5.88e-05 +/- 1.95e-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) = 10086.9289064
delta logL = 2.09620899337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10086.8899976
delta logL = 2.13511774096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5408       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1079       1.0000          .0000       5.0000    
     3 'Normalizat'    .86651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0159       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=   10086.89     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      239 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5408        20.116        .42671E-02    .13625E-02
   2  alpha         3.1078        3.9716        .24621        .74406E-04
   3  Normalizat    .86651        .13266        .10357        .85542E-04
   4  Prefactor     1.0159        .43284E-01    .42571E-01    .19027E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54077
  alpha      = 3.10784
  Normalizat = 0.866511
  Prefactor  = 1.01593
 **********
 **   18 **HESSE 
 **********

 FCN=   10086.89     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5408        2.4148        .62455E-04   -1.5237    
   2  alpha         3.1078        .43553        .10540E-01    .24560    
   3  Normalizat    .86651        .19241        .45911E-03   -.97647    
   4  Prefactor     1.0159        .67496E-01    .15350E-03   -.92200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02471e-11
Minuit parameter uncertainties:
  1  2.41487
  2  0.437909
  3  0.192563
  4  0.0675018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591857': 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) = 10086.8899976
delta logL = 2.13511774647

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  5.541e+00  2.415e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  3.108e+00  4.379e-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:  1.016e+00  6.750e-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:  8.665e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.02
Ra Dec: 114.820 1.622
Photon Index (Free Index): 3.11 +/- 0.44
Photon Flux (Free Index): 2.88e-07 +/- 8.88e-08
Energy Flux (Free Index): 5.59e-05 +/- 1.59e-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/591857/cmap_HighResolution_466905601_467164801_4FGL_J0739.2+0137_daily_bin878.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.82e-07', energy_flux2='5.59e-05', photon_flux_error='6.02e-08', dlogl='2.14e+00', energy_flux='5.88e-05', photon_flux2='2.88e-07', job_status='DONE', time_completed='2021-08-27 20:41:54.356936', photon_index_error2='0.44', photon_index2='3.11', ts='19.96', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.95', time_epoch_completed='1630122114.36', return_code='0', job_id='591857', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='8.88e-08', ts2='25.02', photon_index='2.31' WHERE bin_id='878' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:41:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 591857: <4FGL_J0739.2+0137_daily_bin878> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin878> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 20:25:18 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:25:20 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:25:20 2021
Terminated at Fri Aug 27 20:41:55 2021
Results reported at Fri Aug 27 20:41:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin878 114.82 1.6216 466905601 467164801 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 :                                   843.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            997 sec.

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

