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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin96
RA = 162.467, Dec = 14.4835
tmin = 264211201, tmax = 264470401
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='219814', job_status='RUN', time_executed='2021-09-02 16:55:54.360641', time_epoch_executed='1630626954.36' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219814/ft1_4FGL_J1049.8+1429_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219814/ft1_4FGL_J1049.8+1429_daily_bin96.fits outfile=/scratch/kocevski/219814/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin96.fits ra=162.467 dec=14.4835 rad=12.0 tmin=264211201.0 tmax=264470401.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.42
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219814/ft1_filtered_4FGL_J1049.8+1429_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/219814/ltcube_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.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/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits
.....................!
real 14.77
user 14.45
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219814/ft1_filtered_4FGL_J1049.8+1429_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/219814/ltcube_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.fits outfile=/scratch/kocevski/219814/expmap_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.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/219814/ltcube_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.fits
.....................!
real 160.82
user 155.60
sys 4.59

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/219814/ft1_filtered_4FGL_J1049.8+1429_daily_bin96.fits scfile=/scratch/kocevski/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits outfile=/scratch/kocevski/219814/cmap_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219814/ft1_filtered_4FGL_J1049.8+1429_daily_bin96.fits scfile=/scratch/kocevski/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits outfile=/scratch/kocevski/219814/cmap_HighResolution_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.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.50
user 0.32
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/219814/ft1_filtered_4FGL_J1049.8+1429_daily_bin96.fits', '/scratch/kocevski/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits', expMap='/scratch/kocevski/219814/expmap_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.fits', expCube='/scratch/kocevski/219814/ltcube_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/219814/Model_4FGL_J1049.8+1429_daily_bin96.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/219814/ft1_filtered_4FGL_J1049.8+1429_daily_bin96.fits
Spacecraft file(s): /scratch/kocevski/219814/ft2_4FGL_J1049.8+1429_daily_bin96.fits
Exposure map: /scratch/kocevski/219814/expmap_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.fits
Exposure cube: /scratch/kocevski/219814/ltcube_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/219814/Model_4FGL_J1049.8+1429_daily_bin96.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) = 6819.43593354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.68       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8227       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.591       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.708       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0206       1.0000         .10000E-03   10000.    
    16 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15603E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1682       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96863       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1495       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=   6819.435     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2123 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.727       -.16673E-06** at limit **
   2  Prefactor     .10000E-03    11.608       -.15387E-06** at limit **
   3  Prefactor     105.66        74.283        .19895E-05   -.18417E-04
   4  Prefactor     .10000E-03    18.515       -.13037E-06** at limit **
   5  Prefactor     5.8254        7.5999        .20839E-05    .41585E-03
   6  Prefactor     3.3309        3.2303        .22178E-06    .68473E-04
   7  Prefactor     .10003E-03    2.1034        .16720E-05** at limit **
   8  Prefactor     9.6126        7.3803        .10038E-05    .56297E-03
   9  Prefactor     .10000E-03    2.6404        .30277E-07** at limit **
  10  Prefactor     .85975        5.6764       -.63019E-06   -.20311E-03
  11  Prefactor     .10000E-03    6.6583        .67629E-06** at limit **
  12  Prefactor     14.598        15.089       -.54295E-06   -.38594E-03
  13  norm          .10000E-03    .26032        .15092E-07** at limit **
  14  Prefactor     31.708        18.107        .22794E-06   -.22887E-04
  15  Prefactor     9.0191        6.6327        .19990E-06   -.17747E-03
  16  norm          .10000E-03    7.6147       -.29142E-06** at limit **
  17  Prefactor     .10001E-03    8.0646        .29319E-05** at limit **
  18  Prefactor     6.1492        54.868        .69578E-05   -.51723E-05
  19  Normalizat    .96867        .18411       -.12446E-05   -.53039E-03
  20  Prefactor     1.1495        .16751       -.76772E-06   -.64009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.661
  Prefactor  = 0.000100001
  Prefactor  = 5.82538
  Prefactor  = 3.33092
  Prefactor  = 0.000100032
  Prefactor  = 9.61259
  Prefactor  = 0.0001
  Prefactor  = 0.859754
  Prefactor  = 0.0001
  Prefactor  = 14.5983
  norm       = 0.0001
  Prefactor  = 31.7081
  Prefactor  = 9.01913
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 6.1492
  Normalizat = 0.968668
  Prefactor  = 1.14951
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.435     FROM HESSE     STATUS=OK           295 CALLS     2418 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     105.66        74.361        .19559E-03   -1.3648    
   4  Prefactor     .10000E-03    18.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8254        7.8909        .83218E-03   -1.5225    
   6  Prefactor     3.3309        3.2285        .13801E-03   -1.5343    
   7  Prefactor     .10003E-03    6.7900        .16504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6126        7.5122        .64626E-03   -1.5088    
   9  Prefactor     .10000E-03    2.6516        .13100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .85975        22.843        .31712E-02   -1.5523    
  11  Prefactor     .10000E-03    6.7038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.598        15.356        .10486E-03   -1.4944    
  13  norm          .10000E-03    .26297        .41124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.708        18.118        .71158E-04   -1.4581    
  15  Prefactor     9.0191        6.5881        .13345E-03   -1.5107    
  16  norm          .10000E-03    7.6743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    23.865        .38094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1492        56.390        .16164E-03   -1.5212    
  19  Normalizat    .96867        .21754        .26136E-03   -.94088    
  20  Prefactor     1.1495        .19862        .24154E-03   -.87899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52413e-09
Minuit parameter uncertainties:
  1  0.000160892
  2  9.03392e-06
  3  74.4264
  4  0.00021593
  5  7.89226
  6  3.22869
  7  0.000931509
  8  7.51294
  9  5.22319e-06
  10  8.86648
  11  1.10184e-05
  12  15.36
  13  3.84203e-07
  14  18.1214
  15  6.58865
  16  7.67223e-05
  17  0.0011108
  18  37.2888
  19  0.217735
  20  0.198748
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  9.613e+00  7.513e+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

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.150e+00  1.987e-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:  9.687e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.18e-05

TS (Fixed Index): 2.27
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219814/likelihoodResults_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.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) = 6819.42715121
delta logL = 0.00777383406967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6819.42472217
delta logL = 0.0102028779702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.147       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5030       1.0000          .0000       10.000    
     3 'Normalizat'    .97288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1462       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=   6819.425     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.146        8.6832        .12579E-03    .24159E-02
   2  Index         2.5031        .62580        .87564E-02    .52398E-03
   3  Normalizat    .97289        .19992        .26085E-03   -.34694E-03
   4  Prefactor     1.1462        .19720        .24183E-03   -.46130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1459
  Index      = 2.50311
  Normalizat = 0.972891
  Prefactor  = 1.14621
 **********
 **   18 **HESSE 
 **********

 FCN=   6819.425     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.146        8.4936        .25158E-04   -1.5071    
   2  Index         2.5031        .61178        .35025E-03   -.52288    
   3  Normalizat    .97289        .20007        .52169E-04   -.93944    
   4  Prefactor     1.1462        .19727        .48366E-04   -.88003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59369e-09
Minuit parameter uncertainties:
  1  8.49459
  2  0.613834
  3  0.200221
  4  0.197392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219814': 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) = 6819.42472214
delta logL = 0.0102028997335

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.015e+01  8.495e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.503e+00  6.138e-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:  1.146e+00  1.974e-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:  9.729e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 162.467 14.483
Photon Index (Free Index): 2.50 +/- 0.61
Photon Flux (Free Index): 5.47e-08 +/- 4.68e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/219814/cmap_HighResolution_264211201_264470401_4FGL_J1049.8+1429_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='1.58e-05', photon_flux_error='4.47e-08', dlogl='1.02e-02', energy_flux='1.51e-05', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-09-02 17:04:38.888043', photon_index_error2='0.61', photon_index2='2.50', ts='2.27', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.33e-05', EG='0.97', time_epoch_completed='1630627478.89', return_code='0', job_id='219814', GAL2='1.15', EG2='0.97', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.68e-08', ts2='2.27', photon_index='2.59' WHERE bin_id='96' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 219814: <4FGL_J1049.8+1429_daily_bin96> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin96> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 16:51:20 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 16:53:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 16:53:22 2021
Terminated at Thu Sep  2 17:04:39 2021
Results reported at Thu Sep  2 17:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin96 162.467 14.4835 264211201 264470401 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 :                                   519.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            799 sec.

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

