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


Performing analysis on: 4FGL_J1734.3+3858_monthly_bin90
RA = 263.598, Dec = 38.9763
tmin = 470275201, tmax = 472867201
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='638012', job_status='RUN', time_executed='2021-10-31 04:06:26.882663', time_epoch_executed='1635678386.88' WHERE source_name='4FGL J1734.3+3858' and cadence='monthly' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638012

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638012/ft1_4FGL_J1734.3+3858_monthly_bin90.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638012/ft1_4FGL_J1734.3+3858_monthly_bin90.fits outfile=/scratch/kocevski/638012/ft1_filteredMKT_4FGL_J1734.3+3858_monthly_bin90.fits ra=263.598 dec=38.9763 rad=12.0 tmin=470275201.0 tmax=472867201.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 33.92
user 33.05
sys 0.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.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/638012/ft1_filteredMKT_4FGL_J1734.3+3858_monthly_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.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 2.57
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/638012/ltcube_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.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/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits
.....................!
real 181.80
user 111.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/638012/ltcube_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.fits outfile=/scratch/kocevski/638012/expmap_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.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/638012/ltcube_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.fits
.....................!
real 192.36
user 186.89
sys 5.09

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
Added 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J1734.3+3858 @ 263.598 38.9763

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits scfile=/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits outfile=/scratch/kocevski/638012/cmap_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.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=263.598 yref=38.9763 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.60
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits scfile=/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits outfile=/scratch/kocevski/638012/cmap_HighResolution_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.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=263.598 yref=38.9763 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.60
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638012/Model_4FGL_J1734.3+3858_monthly_bin90.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
Working on...
/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits.....................!
real 573.49
user 553.81
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits', '/scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits', expMap='/scratch/kocevski/638012/expmap_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.fits', expCube='/scratch/kocevski/638012/ltcube_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638012/Model_4FGL_J1734.3+3858_monthly_bin90.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1734.3+3858'

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  8.023e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638012/ft1_filtered_4FGL_J1734.3+3858_monthly_bin90.fits
Spacecraft file(s): /scratch/kocevski/638012/ft2_4FGL_J1734.3+3858_monthly_bin90.fits
Exposure map: /scratch/kocevski/638012/expmap_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.fits
Exposure cube: /scratch/kocevski/638012/ltcube_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638012/Model_4FGL_J1734.3+3858_monthly_bin90.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) = 82094.6373131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46215       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0556       1.0000         .10000E-03   10000.    
     9 'norm      '    .44597       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0507       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3682       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9728       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9825       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.438       1.0000         .10000E-03   10000.    
    19 'norm      '    7.2230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0103       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2787       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1556       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20619E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.086       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8600       1.0000         .10000E-03   10000.    
    27 'norm      '    .10935E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    30.387       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .95181       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.0202       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1530       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   82094.40     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     3851 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46215        .61871E-01     .0000        .35172E-02
   2  norm          2.4802        2.6750         .0000        .19887E-01
   3  Prefactor     .10000E-03    6.9815         .0000    ** at limit **
   4  norm          15.706        11.508         .0000        .11235E-02
   5  Prefactor     .45290        .62163         .0000        .21682E-01
   6  Prefactor     1.1489        .60936         .0000        .80515E-02
   7  Prefactor     .10000E-03    .13281         .0000    ** at limit **
   8  norm          4.0556        .58773         .0000        .34414E-04
   9  norm          .44610        .24948         .0000        .14326E-01
  10  Prefactor     1.0507        1.4541         .0000        .13501E-01
  11  norm          .10000E-03    .38381E-01     .0000    ** at limit **
  12  norm          .10000E-03    .57574         .0000    ** at limit **
  13  norm          6.3682        .67982         .0000        .15237E-02
  14  Prefactor     1.9728        .78944         .0000        .10553E-02
  15  Prefactor     .10000E-03    4.7197         .0000    ** at limit **
  16  norm          5.9826        1.6809         .0000        .18667E-02
  17  Prefactor     14.958        14.723         .0000        .59719E-04
  18  Prefactor     12.439        23.126         .0000       -.10997E-02
  19  norm          7.2231        1.8325         .0000        .33377E-01
  20  Prefactor     8.0094        9.4982         .0000        .12582E-02
  21  Prefactor     7.2801        8.9786         .0000        .19698E-03
  22  Prefactor     .10000E-03    2.6033         .0000    ** at limit **
  23  Prefactor     3.1559        2.4694         .0000        .40487E-01
  24  Prefactor     .10000E-03    9.6934         .0000    ** at limit **
  25  Prefactor     20.085        16.987         .0000        .28959E-03
  26  norm          1.8600        .49660         .0000       -.82984E-03
  27  norm          .10000E-03    24.219         .0000    ** at limit **
  28  norm          30.387        3.6225         .0000        .64553E-02
  29  Prefactor     .95234        1.4865         .0000        .15940E-01
  30  Prefactor     2.0200        1.2121         .0000        .45624E-02
  31  Normalizat    1.1529        .68066E-01     .0000        .74454E-04
  32  Prefactor     .95292        .40300E-01     .0000       -.14152E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.46215
  norm       = 2.48019
  Prefactor  = 0.0001
  norm       = 15.706
  Prefactor  = 0.452895
  Prefactor  = 1.14892
  Prefactor  = 0.0001
  norm       = 4.05558
  norm       = 0.446104
  Prefactor  = 1.05075
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.36821
  Prefactor  = 1.97283
  Prefactor  = 0.0001
  norm       = 5.9826
  Prefactor  = 14.9576
  Prefactor  = 12.4395
  norm       = 7.22306
  Prefactor  = 8.00938
  Prefactor  = 7.28006
  Prefactor  = 0.0001
  Prefactor  = 3.15585
  Prefactor  = 0.0001
  Prefactor  = 20.0848
  norm       = 1.86003
  norm       = 0.0001
  norm       = 30.3873
  Prefactor  = 0.952341
  Prefactor  = 2.02
  Normalizat = 1.15291
  Prefactor  = 0.952924
 **********
 **   18 **HESSE 
 **********

 FCN=   82094.40     FROM HESSE     STATUS=OK           673 CALLS     4524 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46215        .60117E-01    .23378E-04   -1.5572    
   2  norm          2.4802        2.6658        .12980E-02   -1.5393    
   3  Prefactor     .10000E-03    7.1779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.706        11.315        .50529E-03   -1.4915    
   5  Prefactor     .45290        .49668        .13802E-03   -1.5573    
   6  Prefactor     1.1489        .50049        .88606E-04   -1.5494    
   7  Prefactor     .10000E-03    .96900        .19607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0556        .58582        .79919E-04   -1.5305    
   9  norm          .44610        .20822        .10133E-02   -1.5574    
  10  Prefactor     1.0507        1.4075        .37787E-03   -1.5503    
  11  norm          .10000E-03    .16317        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .58706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3682        .67977        .72760E-04   -1.5203    
  14  Prefactor     1.9728        .78995        .77976E-03   -1.5427    
  15  Prefactor     .10000E-03    4.7439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9826        1.6770        .16417E-03   -1.5219    
  17  Prefactor     14.958        14.704        .10356E-03   -1.4934    
  18  Prefactor     12.439        23.115        .11358E-03   -1.5002    
  19  norm          7.2231        1.8301        .74624E-03   -1.5170    
  20  Prefactor     8.0094        9.4686        .70833E-03   -1.5142    
  21  Prefactor     7.2801        8.9469        .14867E-03   -1.5168    
  22  Prefactor     .10000E-03    2.7218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1559        2.4614        .11409E-02   -1.5353    
  24  Prefactor     .10000E-03    9.8196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.085        16.962        .89368E-04   -1.4811    
  26  norm          1.8600        .49755        .10134E-03   -1.5435    
  27  norm          .10000E-03    25.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          30.387        3.6189        .72683E-04   -1.4605    
  29  Prefactor     .95234        1.4816        .41524E-03   -1.5513    
  30  Prefactor     2.0200        1.2083        .23567E-03   -1.5424    
  31  Normalizat    1.1529        .80782E-01    .31428E-03   -.88071    
  32  Prefactor     .95292        .48531E-01    .21285E-03   -.94316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93577e-08
Minuit parameter uncertainties:
  1  0.0601174
  2  2.66594
  3  7.63824e-06
  4  11.317
  5  0.496684
  6  0.500488
  7  3.80383e-07
  8  0.585821
  9  0.208222
  10  1.40754
  11  3.01123e-07
  12  1.41496e-06
  13  0.679766
  14  0.789953
  15  3.56662e-05
  16  1.67698
  17  14.708
  18  23.1315
  19  1.83014
  20  9.47035
  21  8.94859
  22  1.25339e-05
  23  2.46149
  24  6.3271e-05
  25  16.9664
  26  0.497547
  27  5.7321e-05
  28  3.61897
  29  1.48165
  30  1.20836
  31  0.0807902
  32  0.0485329
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  5.983e+00  1.677e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.529e-01  4.853e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.153e+00  8.079e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.37
Ra Dec: 263.598 38.976
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 9.71e-09
Energy Flux (Fixed Index): 1.36e-05 +/- 3.80e-06

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) = 82094.142965
delta logL = 0.25477599536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 82094.1376585
delta logL = 0.260082563589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4092       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95566       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   82094.14     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      258 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8037        1.6265        .83349E-03    .24767E-02
   2  alpha         2.4093        .25805        .20108E-01    .49219E-04
   3  Normalizat    1.1446        .76386E-01    .31527E-03    .23078E-05
   4  Prefactor     .95567        .47247E-01    .21257E-03    .35939E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80366
  alpha      = 2.40928
  Normalizat = 1.14461
  Prefactor  = 0.955673
 **********
 **   18 **HESSE 
 **********

 FCN=   82094.14     FROM HESSE     STATUS=OK            27 CALLS      285 TOTAL
                     EDM=   .67E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8037        1.5852        .16670E-03   -1.5226    
   2  alpha         2.4093        .25131        .80433E-03   -.36295E-01
   3  Normalizat    1.1446        .76406E-01    .12611E-04   -.88332    
   4  Prefactor     .95567        .47268E-01    .42515E-04   -.94222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70048e-15
Minuit parameter uncertainties:
  1  1.58523
  2  0.251736
  3  0.0764137
  4  0.0472699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638012': 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) = 82094.1376582
delta logL = 0.260082808265

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  5.804e+00  1.585e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.409e+00  2.517e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  8.534e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.557e-01  4.727e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.145e+00  7.641e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.82
Ra Dec: 263.598 38.976
Photon Index (Free Index): 2.41 +/- 0.25
Photon Flux (Free Index): 4.16e-08 +/- 1.43e-08
Energy Flux (Free Index): 1.33e-05 +/- 3.46e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/638012/cmap_HighResolution_470275201_472867201_4FGL_J1734.3+3858_monthly_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='1.33e-05', photon_flux_error='9.71e-09', dlogl='2.60e-01', energy_flux='1.36e-05', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-10-31 07:08:59.308182', photon_index_error2='0.25', photon_index2='2.41', ts='27.37', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.46e-06', EG='1.15', time_epoch_completed='1635689339.31', return_code='0', job_id='638012', GAL2='0.96', EG2='1.14', return_code2='0', energy_flux_error='3.80e-06', photon_flux_error2='1.43e-08', ts2='27.82', photon_index='2.23' WHERE bin_id='90' AND source_name='4FGL J1734.3+3858' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 31 07:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 638012: <4FGL_J1734.3+3858_monthly_bin90> in cluster <slac> Done

Job <4FGL_J1734.3+3858_monthly_bin90> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Oct 31 04:00:23 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 31 04:02:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 31 04:02:21 2021
Terminated at Sun Oct 31 07:09:01 2021
Results reported at Sun Oct 31 07:09:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1734.3+3858_monthly_bin90 263.598 38.9763 470275201 472867201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1734.3+3858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   7489.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             383.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11312 sec.
    Turnaround time :                            11318 sec.

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

