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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1606
RA = 162.467, Dec = 14.4835
tmin = 655603201, tmax = 655862401
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='299934', job_status='RUN', time_executed='2021-12-07 21:18:52.822262', time_epoch_executed='1638940732.82' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299934/ft1_4FGL_J1049.8+1429_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299934/ft1_4FGL_J1049.8+1429_daily_bin1606.fits outfile=/scratch/kocevski/299934/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1606.fits ra=162.467 dec=14.4835 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.27
user 4.04
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.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/299934/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/299934/ltcube_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.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/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits
.....................!
real 14.05
user 13.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/299934/ltcube_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.fits outfile=/scratch/kocevski/299934/expmap_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.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/299934/ltcube_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.fits
.....................!
real 192.04
user 186.44
sys 5.21

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

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits scfile=/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits outfile=/scratch/kocevski/299934/cmap_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.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=162.467 yref=14.4835 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits scfile=/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits outfile=/scratch/kocevski/299934/cmap_HighResolution_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.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=162.467 yref=14.4835 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/299934/Model_4FGL_J1049.8+1429_daily_bin1606.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/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits.....................!
real 61.50
user 60.07
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits', '/scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits', expMap='/scratch/kocevski/299934/expmap_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.fits', expCube='/scratch/kocevski/299934/ltcube_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/299934/Model_4FGL_J1049.8+1429_daily_bin1606.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/299934/ft1_filtered_4FGL_J1049.8+1429_daily_bin1606.fits
Spacecraft file(s): /scratch/kocevski/299934/ft2_4FGL_J1049.8+1429_daily_bin1606.fits
Exposure map: /scratch/kocevski/299934/expmap_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.fits
Exposure cube: /scratch/kocevski/299934/ltcube_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/299934/Model_4FGL_J1049.8+1429_daily_bin1606.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) = 6778.09655805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0972       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.950       1.0000         .10000E-03   10000.    
    13 'norm      '    .34942       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7775       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.461       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3409       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78559       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6778.059     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2112 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.117       -.16634E-04** at limit **
   2  Prefactor     .10000E-03    47.955       -.24238E-04** at limit **
   3  Prefactor     19.543        26.393        .27713E-05   -.26617E-03
   4  Prefactor     .10000E-03    14.794        .10199E-04** at limit **
   5  Prefactor     .10009E-03    4.1871        .13007E-05** at limit **
   6  Prefactor     7.0943        3.8176       -.27181E-06   -.12450E-03
   7  Prefactor     .10000E-03    1.4174       -.10961E-06** at limit **
   8  Prefactor     26.496        10.356        .87047E-07    .40314E-04
   9  Prefactor     .10000E-03    10.266       -.39104E-06** at limit **
  10  Prefactor     2.6047        11.734        .20148E-05   -.22811E-03
  11  Prefactor     4.6645        8.4669       -.38267E-05   -.19305E-03
  12  Prefactor     12.934        19.091       -.10119E-04   -.72136E-04
  13  norm          .34939        1.1399       -.72545E-06   -.22533E-02
  14  Prefactor     6.7753        12.137       -.11233E-06   -.25672E-04
  15  Prefactor     19.462        8.4869        .34339E-06    .15024E-03
  16  norm          8.8268        8.7647       -.13215E-06   -.32960E-04
  17  Prefactor     .32632        6.2363       -.10582E-05    .88875E-04
  18  Prefactor     .10000E-03    43.448        .21521E-04** at limit **
  19  Normalizat    1.3410        .19113        .17917E-05   -.13066E-03
  20  Prefactor     .78568        .16678        .58449E-06    .31341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.543
  Prefactor  = 0.000100001
  Prefactor  = 0.000100093
  Prefactor  = 7.09427
  Prefactor  = 0.0001
  Prefactor  = 26.4962
  Prefactor  = 0.0001
  Prefactor  = 2.60468
  Prefactor  = 4.66451
  Prefactor  = 12.934
  norm       = 0.349385
  Prefactor  = 6.7753
  Prefactor  = 19.4619
  norm       = 8.82677
  Prefactor  = 0.326318
  Prefactor  = 0.0001
  Normalizat = 1.34095
  Prefactor  = 0.78568
 **********
 **   18 **HESSE 
 **********

 FCN=   6778.059     FROM HESSE     STATUS=OK           295 CALLS     2407 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.543        26.121        .90604E-04   -1.4824    
   4  Prefactor     .10000E-03    14.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    22.058        .30900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0943        3.8156        .11197E-03   -1.5175    
   7  Prefactor     .10000E-03    1.4731        .19077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.496        10.400        .77831E-04   -1.4678    
   9  Prefactor     .10000E-03    10.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6047        10.523        .25345E-03   -1.5385    
  11  Prefactor     4.6645        8.3325        .18613E-03   -1.5276    
  12  Prefactor     12.934        18.565        .11131E-03   -1.4989    
  13  norm          .34939        1.1387        .15075E-03   -1.5590    
  14  Prefactor     6.7753        12.126        .15412E-03   -1.5187    
  15  Prefactor     19.462        8.4894        .90791E-04   -1.4825    
  16  norm          8.8268        8.7549        .13487E-03   -1.5114    
  17  Prefactor     .32632        66.184        .39101E-02   -1.5594    
  18  Prefactor     .10000E-03    43.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3410        .22779        .24042E-03   -.82352    
  20  Prefactor     .78568        .19999        .28493E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90983e-09
Minuit parameter uncertainties:
  1  1.22639e-05
  2  7.97349e-06
  3  26.1366
  4  0.000233962
  5  0.00286416
  6  3.81572
  7  2.88981e-06
  8  10.4006
  9  2.75652e-05
  10  10.4736
  11  8.33457
  12  18.5728
  13  1.13874
  14  12.1305
  15  8.48991
  16  8.75619
  17  9.30352
  18  0.000227457
  19  0.227962
  20  0.200171
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.650e+01  1.040e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  7.857e-01  2.002e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.341e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.74
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 6.18e-08
Energy Flux (Fixed Index): 4.16e-05 +/- 1.63e-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) = 6777.81960721
delta logL = 0.239547031942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6777.80413373
delta logL = 0.255020517067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.950       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0196       1.0000          .0000       10.000    
     3 'Normalizat'    1.2939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+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=   6777.804     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      292 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.953        16.273        .92007E-04   -.65476E-03
   2  Index         3.0198        .74852        .48382E-02   -.15162E-03
   3  Normalizat    1.2940        .22657        .24395E-03    .53033E-03
   4  Prefactor     .82324        .20722        .27929E-03    .80418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9527
  Index      = 3.01979
  Normalizat = 1.29403
  Prefactor  = 0.823236
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.804     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.953        14.209        .36803E-05   -1.4837    
   2  Index         3.0198        .65339        .19353E-03   -.40720    
   3  Normalizat    1.2940        .22525        .48791E-04   -.83745    
   4  Prefactor     .82324        .20567        .55858E-04   -.98877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24131e-09
Minuit parameter uncertainties:
  1  14.2117
  2  0.655621
  3  0.225424
  4  0.20586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299934': 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) = 6777.8041329
delta logL = 0.255021343659

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.895e+01  1.421e+01  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  3.020e+00  6.556e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  8.232e-01  2.059e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.294e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.40
Ra Dec: 162.467 14.483
Photon Index (Free Index): 3.02 +/- 0.66
Photon Flux (Free Index): 1.88e-07 +/- 7.85e-08
Energy Flux (Free Index): 3.72e-05 +/- 1.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/299934/cmap_HighResolution_655603201_655862401_4FGL_J1049.8+1429_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='3.72e-05', photon_flux_error='6.18e-08', dlogl='2.55e-01', energy_flux='4.16e-05', photon_flux2='1.88e-07', job_status='DONE', time_completed='2021-12-07 21:28:19.481956', photon_index_error2='0.66', photon_index2='3.02', ts='10.74', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.34', time_epoch_completed='1638941299.48', return_code='0', job_id='299934', GAL2='0.82', EG2='1.29', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.85e-08', ts2='11.40', photon_index='2.59' WHERE bin_id='1606' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:28:19 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 299934: <4FGL_J1049.8+1429_daily_bin1606> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1606> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 21:15:19 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:16:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:16:51 2021
Terminated at Tue Dec  7 21:28:20 2021
Results reported at Tue Dec  7 21:28:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1606 162.467 14.4835 655603201 655862401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            781 sec.

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

