/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 2 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0739.2+0137_daily_bin60
RA = 114.82, Dec = 1.6216
tmin = 254880001, tmax = 255139201
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='584649', job_status='RUN', time_executed='2021-08-27 20:00:47.597663', time_epoch_executed='1630119647.6' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584649

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584649/ft1_4FGL_J0739.2+0137_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584649/ft2_4FGL_J0739.2+0137_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584649/ft1_4FGL_J0739.2+0137_daily_bin60.fits outfile=/scratch/kocevski/584649/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin60.fits ra=114.82 dec=1.6216 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.73
user 1.24
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584649/ft1_filtered_4FGL_J0739.2+0137_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/584649/ft2_4FGL_J0739.2+0137_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/584649/ltcube_254880001_255139201_4FGL_J0739.2+0137_daily_bin60.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/584649/ft2_4FGL_J0739.2+0137_daily_bin60.fits
.....................!
real 12.67
user 12.04
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584649/ft1_filtered_4FGL_J0739.2+0137_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/584649/ft2_4FGL_J0739.2+0137_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/584649/ltcube_254880001_255139201_4FGL_J0739.2+0137_daily_bin60.fits outfile=/scratch/kocevski/584649/expmap_254880001_255139201_4FGL_J0739.2+0137_daily_bin60.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/584649/ltcube_254880001_255139201_4FGL_J0739.2+0137_daily_bin60.fits
.....................!
real 191.77
user 186.07
sys 5.10

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/584649/ft1_filtered_4FGL_J0739.2+0137_daily_bin60.fits scfile=/scratch/kocevski/584649/ft2_4FGL_J0739.2+0137_daily_bin60.fits outfile=/scratch/kocevski/584649/cmap_254880001_255139201_4FGL_J0739.2+0137_daily_bin60.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.76
user 0.37
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584649/ft1_filtered_4FGL_J0739.2+0137_daily_bin60.fits scfile=/scratch/kocevski/584649/ft2_4FGL_J0739.2+0137_daily_bin60.fits outfile=/scratch/kocevski/584649/cmap_HighResolution_254880001_255139201_4FGL_J0739.2+0137_daily_bin60.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.74
user 0.37
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6132       1.0000         .10000E-03   10000.    
     2 'norm      '    12.298       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1580       1.0000         .10000E-03   10000.    
     5 'norm      '    .90189       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.206       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15817       1.0000         .10000E-03   10000.    
    14 'norm      '    7.0261       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.943       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3422       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5722       1.0000         .10000E-03   10000.    
    21 'norm      '    20.089       1.0000         .10000E-03   10000.    
    22 'norm      '    .55873       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.327       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68492       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0199       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=   9467.671     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2994 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6107        12.122        .17113E-06   -.29288E-04
   2  norm          12.299        21.392       -.13062E-06   -.15212E-04
   3  Prefactor     .10000E-03    18.626       -.65986E-07** at limit **
   4  norm          2.1568        5.0909        .10380E-05   -.11370E-03
   5  norm          .90141        1.4681        .57055E-06    .29457E-03
   6  Prefactor     .10000E-03    13.052       -.39716E-08** at limit **
   7  Prefactor     .10000E-03    2.8899        .11828E-06** at limit **
   8  Prefactor     9.2807        8.2972        .70907E-06   -.12022E-03
   9  Prefactor     .10000E-03    16.800        .86423E-07** at limit **
  10  norm          3.0918        1.7174        .43918E-07   -.18336E-03
  11  Prefactor     .10000E-03    5.7331        .70761E-08** at limit **
  12  norm          15.203        13.052        .44558E-07   -.13124E-04
  13  Prefactor     .14275        1.6892        .12333E-07    .10776E-03
  14  norm          7.0261        11.689        .92359E-07    .14515E-04
  15  Prefactor     17.950        14.136        .45141E-07    .56352E-05
  16  Prefactor     2.5613        3.6791        .11508E-06   -.29514E-04
  17  Prefactor     .10000E-03    14.975       -.80751E-06** at limit **
  18  norm          4.3423        5.8331        .14874E-06    .28218E-04
  19  norm          .10000E-03    1.1104        .21624E-07** at limit **
  20  norm          1.5721        1.3806        .11197E-06   -.69386E-04
  21  norm          20.087        23.850        .39587E-07   -.10394E-03
  22  norm          .55721        1.7428        .44191E-06   -.16035E-03
  23  Prefactor     10.416        46.527        .13066E-06    .73736E-05
  24  Normalizat    .68491        .18575       -.12178E-05   -.93464E-04
  25  Prefactor     1.0199        .66815E-01   -.11931E-06   -.19373E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.61071
  norm       = 12.2991
  Prefactor  = 0.0001
  norm       = 2.15683
  norm       = 0.90141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.28067
  Prefactor  = 0.0001
  norm       = 3.09181
  Prefactor  = 0.0001
  norm       = 15.2034
  Prefactor  = 0.142752
  norm       = 7.02608
  Prefactor  = 17.95
  Prefactor  = 2.56131
  Prefactor  = 0.0001
  norm       = 4.34232
  norm       = 0.0001
  norm       = 1.57215
  norm       = 20.0875
  norm       = 0.557213
  Prefactor  = 10.4156
  Normalizat = 0.684909
  Prefactor  = 1.01989
 **********
 **   18 **HESSE 
 **********

 FCN=   9467.671     FROM HESSE     STATUS=OK           445 CALLS     3439 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6107        12.159        .18740E-03   -1.5278    
   2  norm          12.299        21.443        .11423E-03   -1.5006    
   3  Prefactor     .10000E-03    18.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1568        5.0257        .28042E-03   -1.5414    
   5  norm          .90141        1.4261        .15235E-02   -1.5518    
   6  Prefactor     .10000E-03    13.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.149        .32138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2807        8.2268        .65775E-03   -1.5099    
   9  Prefactor     .10000E-03    16.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0918        1.7126        .90687E-04   -1.5356    
  11  Prefactor     .10000E-03    5.7340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.203        13.053        .10271E-03   -1.4928    
  13  Prefactor     .14275        19.879        .23809E-02   -1.5632    
  14  norm          7.0261        11.676        .15134E-03   -1.5178    
  15  Prefactor     17.950        14.158        .94552E-04   -1.4860    
  16  Prefactor     2.5613        3.6656        .21762E-03   -1.5388    
  17  Prefactor     .10000E-03    14.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3423        5.8241        .19331E-03   -1.5291    
  19  norm          .10000E-03    1.1328        .99954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5721        1.3681        .10311E-03   -1.5457    
  21  norm          20.087        23.777        .89361E-04   -1.4811    
  22  norm          .55721        1.8557        .21681E-02   -1.5559    
  23  Prefactor     10.416        46.758        .12469E-03   -1.5062    
  24  Normalizat    .68491        .19795        .45753E-03   -1.0449    
  25  Prefactor     1.0199        .70311E-01    .14093E-03   -.92069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52496e-08
Minuit parameter uncertainties:
  1  12.165
  2  21.4568
  3  2.89826e-05
  4  5.02664
  5  1.42614
  6  6.85394e-07
  7  0.000125362
  8  8.22779
  9  3.6913e-05
  10  1.71264
  11  1.82143e-07
  12  13.0559
  13  3.36913
  14  11.6797
  15  14.1605
  16  3.66595
  17  1.42163e-05
  18  5.82485
  19  2.97581e-08
  20  1.36811
  21  23.7882
  22  1.85593
  23  44.1941
  24  0.19816
  25  0.0703173
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.092e+00  1.713e+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.020e+00  7.032e-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:  6.849e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.43
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.66e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.37e-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) = 9467.1187053
delta logL = 0.551794869554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9467.09724353
delta logL = 0.573256633139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0732       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7997       1.0000          .0000       5.0000    
     3 'Normalizat'    .70455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0165       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=   9467.097     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0727        1.7997        .57846E-02    .34707E-03
   2  alpha         1.8000        .37011        .36941       -.57432E-04
   3  Normalizat    .70428        .16361        .10184        .41889E-04
   4  Prefactor     1.0166        .60504E-01    .31930E-01   -.12504E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.07273
  alpha      = 1.79997
  Normalizat = 0.704277
  Prefactor  = 1.01659
 **********
 **   18 **HESSE 
 **********

 FCN=   9467.097     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0727        1.8523        .92283E-04   -1.5357    
   2  alpha         1.8000        .44426        .13996E-01   -.28381    
   3  Normalizat    .70428        .16881        .45159E-03   -1.0372    
   4  Prefactor     1.0166        .62436E-01    .14111E-03   -.92179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63936e-12
Minuit parameter uncertainties:
  1  1.85234
  2  0.446832
  3  0.168938
  4  0.0624407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584649': 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) = 9467.0972419
delta logL = 0.573258260636

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.073e+00  1.852e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.800e+00  4.468e-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.017e+00  6.244e-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:  7.043e-01  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.53
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.80 +/- 0.45
Photon Flux (Free Index): 5.55e-08 +/- 3.85e-08
Energy Flux (Free Index): 3.69e-05 +/- 2.57e-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/584649/cmap_HighResolution_254880001_255139201_4FGL_J0739.2+0137_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.66e-08', energy_flux2='3.69e-05', photon_flux_error='4.24e-08', dlogl='5.73e-01', energy_flux='2.48e-05', photon_flux2='5.55e-08', job_status='DONE', time_completed='2021-08-27 20:13:57.087713', photon_index_error2='0.45', photon_index2='1.80', ts='6.43', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='0.68', time_epoch_completed='1630120437.09', return_code='0', job_id='584649', GAL2='1.02', EG2='0.70', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.85e-08', ts2='7.53', photon_index='2.31' WHERE bin_id='60' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:13:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 584649: <4FGL_J0739.2+0137_daily_bin60> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin60> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 20:00:32 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:00:33 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:00:33 2021
Terminated at Fri Aug 27 20:13:57 2021
Results reported at Fri Aug 27 20:13:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin60 114.82 1.6216 254880001 255139201 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

