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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin535
RA = 250.734, Dec = 39.8164
tmin = 378000001, tmax = 378259201
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='857730', job_status='RUN', time_executed='2021-09-15 07:48:01.821684', time_epoch_executed='1631717281.82' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857730

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857730/ft1_4FGL_J1642.9+3948_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857730/ft1_4FGL_J1642.9+3948_daily_bin535.fits outfile=/scratch/kocevski/857730/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin535.fits ra=250.734 dec=39.8164 rad=12.0 tmin=378000001.0 tmax=378259201.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 2.91
user 2.69
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.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/857730/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin535.fits evtable="EVENTS" outfile="/scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/857730/ltcube_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.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/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits
.....................!
real 12.89
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/857730/ltcube_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.fits outfile=/scratch/kocevski/857730/expmap_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.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/857730/ltcube_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.fits
.....................!
real 158.22
user 153.20
sys 4.54

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

Setting source of interest to:
4FGL J1642.9+3948 @ 250.734 39.8164

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits scfile=/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits outfile=/scratch/kocevski/857730/cmap_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.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=250.734 yref=39.8164 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.49
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits scfile=/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits outfile=/scratch/kocevski/857730/cmap_HighResolution_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.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=250.734 yref=39.8164 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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857730/Model_4FGL_J1642.9+3948_daily_bin535.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/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits.....................!
real 50.00
user 48.59
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits', '/scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits', expMap='/scratch/kocevski/857730/expmap_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.fits', expCube='/scratch/kocevski/857730/ltcube_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857730/Model_4FGL_J1642.9+3948_daily_bin535.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1642.9+3948'

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.494e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/857730/ft1_filtered_4FGL_J1642.9+3948_daily_bin535.fits
Spacecraft file(s): /scratch/kocevski/857730/ft2_4FGL_J1642.9+3948_daily_bin535.fits
Exposure map: /scratch/kocevski/857730/expmap_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.fits
Exposure cube: /scratch/kocevski/857730/ltcube_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857730/Model_4FGL_J1642.9+3948_daily_bin535.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7520.46820489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21560E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4518       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7208       1.0000         .10000E-03   10000.    
     8 'norm      '    9.1623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8826       1.0000         .10000E-03   10000.    
    11 'norm      '    10.748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57058       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5910       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4531       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2049       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5355       1.0000         .10000E-03   10000.    
    19 'norm      '    .32988       1.0000         .10000E-03   10000.    
    20 'norm      '    14.248       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5706       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.3985       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.886       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7520.446     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     2772 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0739        55.063        .10971E-05   -.17308E-05
   2  Prefactor     .10000E-03    102.22        .11664E-06** at limit **
   3  Prefactor     1.3023        2.5548        .92328E-07    .65230E-04
   4  Prefactor     .10000E-03    5.7992        .17440E-05** at limit **
   5  Prefactor     4.5470        21.480       -.58395E-05   -.13652E-04
   6  Prefactor     6.4519        3.9619        .18948E-06    .92297E-04
   7  norm          1.7205        .25079       -.88689E-08    .44491E-03
   8  norm          9.1620        12.142       -.63114E-08   -.41566E-05
   9  Prefactor     .10000E-03    11.835        .60476E-09** at limit **
  10  Prefactor     1.8827        3.5550        .83768E-07    .30870E-04
  11  norm          10.731        30.087        .47238E-06    .74411E-05
  12  Prefactor     .19214        2.2037        .19005E-06   -.18927E-03
  13  Prefactor     .56578        1.6943       -.44818E-07   -.21087E-03
  14  Prefactor     4.4077        2.7342        .10960E-08    .13594E-04
  15  Prefactor     1.5910        2.0582        .65248E-08    .61776E-04
  16  norm          6.4532        2.0202       -.26047E-08    .56648E-04
  17  norm          5.2049        1.3081        .19166E-07   -.77146E-04
  18  Prefactor     6.5362        6.9956       -.10567E-06   -.21416E-04
  19  norm          .32983        .44909       -.64721E-07    .93694E-03
  20  norm          14.251        9.7982       -.10148E-06   -.71449E-04
  21  norm          2.5706        1.3961        .27445E-07    .13188E-05
  22  Prefactor     .10000E-03    21.481        .10332E-06** at limit **
  23  norm          2.3987        4.5219        .12226E-05   -.62568E-04
  24  Prefactor     14.858        64.150        .52966E-06   -.99117E-05
  25  Normalizat    1.0024        .19434       -.57317E-06    .87478E-05
  26  Prefactor     .70372        .14357       -.42583E-07   -.83577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07389
  Prefactor  = 0.0001
  Prefactor  = 1.30233
  Prefactor  = 0.000100001
  Prefactor  = 4.54704
  Prefactor  = 6.45189
  norm       = 1.72052
  norm       = 9.16198
  Prefactor  = 0.0001
  Prefactor  = 1.88273
  norm       = 10.731
  Prefactor  = 0.192136
  Prefactor  = 0.565775
  Prefactor  = 4.40765
  Prefactor  = 1.59102
  norm       = 6.45324
  norm       = 5.20488
  Prefactor  = 6.53619
  norm       = 0.329826
  norm       = 14.2507
  norm       = 2.57056
  Prefactor  = 0.0001
  norm       = 2.39873
  Prefactor  = 14.858
  Normalizat = 1.00238
  Prefactor  = 0.703725
 **********
 **   18 **HESSE 
 **********

 FCN=   7520.446     FROM HESSE     STATUS=OK           482 CALLS     3254 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0739        55.420        .23062E-03   -1.5357    
   2  Prefactor     .10000E-03    102.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3023        2.5195        .18512E-03   -1.5480    
   4  Prefactor     .10000E-03    46.677        .35282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5470        22.775        .18922E-03   -1.5281    
   6  Prefactor     6.4519        3.9690        .62944E-03   -1.5200    
   7  norm          1.7205        .25816        .14325E-04   -1.5446    
   8  norm          9.1620        12.137        .13241E-03   -1.5102    
   9  Prefactor     .10000E-03    11.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8827        3.5225        .21146E-03   -1.5434    
  11  norm          10.731        30.153        .12221E-03   -1.5053    
  12  Prefactor     .19214        8.9958        .12526E-02   -1.5620    
  13  Prefactor     .56578        2.1744        .12207E-03   -1.5558    
  14  Prefactor     4.4077        2.7325        .10748E-03   -1.5288    
  15  Prefactor     1.5910        2.0271        .13419E-03   -1.5456    
  16  norm          6.4532        2.0126        .65977E-04   -1.5200    
  17  norm          5.2049        1.3068        .45716E-04   -1.5252    
  18  Prefactor     6.5362        6.9599        .15698E-03   -1.5197    
  19  norm          .32983        .40721        .64785E-03   -1.5593    
  20  norm          14.251        9.7873        .10611E-03   -1.4953    
  21  norm          2.5706        1.3930        .72328E-04   -1.5387    
  22  Prefactor     .10000E-03    21.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3987        4.5341        .10984E-02   -1.5398    
  24  Prefactor     14.858        64.224        .10381E-03   -1.4937    
  25  Normalizat    1.0024        .22658        .27170E-03   -.92951    
  26  Prefactor     .70372        .16760        .25665E-03   -1.0338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8153e-08
Minuit parameter uncertainties:
  1  26.1317
  2  9.36488e-05
  3  2.51973
  4  0.000447289
  5  20.3651
  6  3.96914
  7  0.258156
  8  12.1405
  9  1.90773e-05
  10  3.52285
  11  30.1961
  12  2.62913
  13  2.17471
  14  2.73257
  15  2.02719
  16  2.01258
  17  1.30676
  18  6.96074
  19  0.407212
  20  9.78844
  21  1.39304
  22  4.21114e-05
  23  4.53476
  24  61.8937
  25  0.226796
  26  0.167721
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  5.658e-01  2.175e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.037e-01  1.677e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.002e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 250.734 39.816
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857730/likelihoodResults_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7520.4319746
delta logL = 0.0137795209239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7520.42330457
delta logL = 0.0224495551292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75016       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0689       1.0000          .0000       10.000    
     3 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69953       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7520.423     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75052        1.5126        .14087E-03    .76587E-04
   2  Index         2.0700        1.2867        .14830E-01    .62915E-05
   3  Normalizat    1.0092        .20332        .27098E-03   -.14617E-03
   4  Prefactor     .69966        .16338        .25732E-03    .17677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.750524
  Index      = 2.07004
  Normalizat = 1.00916
  Prefactor  = 0.69966
 **********
 **   18 **HESSE 
 **********

 FCN=   7520.423     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75052        1.4717        .56349E-05   -1.5535    
   2  Index         2.0700        1.2525        .59320E-03   -.62610    
   3  Normalizat    1.0092        .20330        .10839E-04   -.92724    
   4  Prefactor     .69966        .16342        .10293E-04   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3813e-10
Minuit parameter uncertainties:
  1  1.47178
  2  1.27332
  3  0.20346
  4  0.163536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857730': 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) = 7520.42330353
delta logL = 0.0224505917286

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  7.505e-01  1.472e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.070e+00  1.273e+00  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  6.997e-01  1.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.009e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
Ra Dec: 250.734 39.816

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/857730/cmap_HighResolution_378000001_378259201_4FGL_J1642.9+3948_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-15 08:00:44.410567', job_id='857730', GAL2='0.70', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1631718044.41', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.25e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='535' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:00:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 857730: <4FGL_J1642.9+3948_daily_bin535> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin535> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 15 07:45:31 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 07:47:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 07:47:53 2021
Terminated at Wed Sep 15 08:00:45 2021
Results reported at Wed Sep 15 08:00:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin535 250.734 39.8164 378000001 378259201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1642.9+3948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            914 sec.

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

