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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin90
RA = 162.467, Dec = 14.4835
tmin = 262656001, tmax = 262915201
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='219804', job_status='RUN', time_executed='2021-09-02 16:56:15.366166', time_epoch_executed='1630626975.37' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219804/ft1_4FGL_J1049.8+1429_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219804/ft2_4FGL_J1049.8+1429_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219804/ft1_4FGL_J1049.8+1429_daily_bin90.fits outfile=/scratch/kocevski/219804/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin90.fits ra=162.467 dec=14.4835 rad=12.0 tmin=262656001.0 tmax=262915201.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.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219804/ft2_4FGL_J1049.8+1429_daily_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/219804/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/219804/ft1_filtered_4FGL_J1049.8+1429_daily_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 0.48
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219804/ft1_filtered_4FGL_J1049.8+1429_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/219804/ft2_4FGL_J1049.8+1429_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/219804/ltcube_262656001_262915201_4FGL_J1049.8+1429_daily_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/219804/ft2_4FGL_J1049.8+1429_daily_bin90.fits
.....................!
real 16.05
user 15.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219804/ft1_filtered_4FGL_J1049.8+1429_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/219804/ft2_4FGL_J1049.8+1429_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/219804/ltcube_262656001_262915201_4FGL_J1049.8+1429_daily_bin90.fits outfile=/scratch/kocevski/219804/expmap_262656001_262915201_4FGL_J1049.8+1429_daily_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/219804/ltcube_262656001_262915201_4FGL_J1049.8+1429_daily_bin90.fits
.....................!
real 193.93
user 188.03
sys 5.29

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/219804/ft1_filtered_4FGL_J1049.8+1429_daily_bin90.fits scfile=/scratch/kocevski/219804/ft2_4FGL_J1049.8+1429_daily_bin90.fits outfile=/scratch/kocevski/219804/cmap_262656001_262915201_4FGL_J1049.8+1429_daily_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=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.80
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219804/ft1_filtered_4FGL_J1049.8+1429_daily_bin90.fits scfile=/scratch/kocevski/219804/ft2_4FGL_J1049.8+1429_daily_bin90.fits outfile=/scratch/kocevski/219804/cmap_HighResolution_262656001_262915201_4FGL_J1049.8+1429_daily_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=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.76
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219804/ft1_filtered_4FGL_J1049.8+1429_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/219804/ft2_4FGL_J1049.8+1429_daily_bin90.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219804/Model_4FGL_J1049.8+1429_daily_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/219804/ft1_filtered_4FGL_J1049.8+1429_daily_bin90.fits.....................!
real 61.56
user 57.48
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.563       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11450E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34178E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71909       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14326E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3531       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.457       1.0000         .10000E-03   10000.    
    13 'norm      '    .70872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.634       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28471E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86504       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3030       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.

 FCN=   6432.490     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     1882 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.654        42.957        .24603E-02   -.12965E-02
   2  Prefactor     .10000E-03    49.247        .90712E-02** at limit **
   3  Prefactor     .10000E-03    71.737        .90712E-02** at limit **
   4  Prefactor     .10000E-03    17.712        .90712E-02** at limit **
   5  Prefactor     .10000E-03    4.2151        .49650E-01** at limit **
   6  Prefactor     .10000E-03    1.1907        .47369E-01** at limit **
   7  Prefactor     .71752        1.6708        .32710E-01    .11473E-02
   8  Prefactor     .10000E-03    4.3156        .54970E-01** at limit **
   9  Prefactor     7.3480        6.9385        .36978E-02    .18851E-03
  10  Prefactor     .10000E-03    4.0786        .90712E-02** at limit **
  11  Prefactor     3.8234        7.3314        .51633E-02    .24977E-03
  12  Prefactor     25.461        16.464        .19849E-02   -.76854E-04
  13  norm          .70807        1.2533        .12095E-01    .14004E-02
  14  Prefactor     29.633        19.272        .18400E-02   -.13813E-03
  15  Prefactor     .10000E-03    10.477        .90712E-02** at limit **
  16  norm          .10000E-03    4.6404        .90712E-02** at limit **
  17  Prefactor     .10521E-03    8.2353        .99422E-01** at limit **
  18  Prefactor     .10000E-03    28.484        .90712E-02** at limit **
  19  Normalizat    .86538        .18139        .44453E-01    .39774E-04
  20  Prefactor     1.3029        .17409        .51675E-01    .29933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.717517
  Prefactor  = 0.0001
  Prefactor  = 7.34802
  Prefactor  = 0.0001
  Prefactor  = 3.82342
  Prefactor  = 25.461
  norm       = 0.708067
  Prefactor  = 29.633
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010521
  Prefactor  = 0.0001
  Normalizat = 0.86538
  Prefactor  = 1.30289
 **********
 **   18 **HESSE 
 **********

 FCN=   6432.490     FROM HESSE     STATUS=OK           303 CALLS     2185 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.654        42.895        .98414E-04   -1.4892    
   2  Prefactor     .10000E-03    49.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.724        .31304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4678        .16802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .71752        1.5296        .14928E-02   -1.5539    
   8  Prefactor     .10000E-03    12.741        .31827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3480        6.8885        .14791E-03   -1.5166    
  10  Prefactor     .10000E-03    4.1096        .15795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8234        7.2937        .20653E-03   -1.5317    
  12  Prefactor     25.461        16.477        .79395E-04   -1.4698    
  13  norm          .70807        1.2263        .11181E-03   -1.5540    
  14  Prefactor     29.633        19.251        .73598E-04   -1.4619    
  15  Prefactor     .10000E-03    10.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6780        .16871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10521E-03    14.628        .67940E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86538        .20951        .27004E-03   -.97688    
  20  Prefactor     1.3029        .20533        .22846E-03   -.83221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66998e-08
Minuit parameter uncertainties:
  1  42.9747
  2  0.000122026
  3  0.000185417
  4  1.96296e-06
  5  3.28567e-06
  6  6.853e-06
  7  1.52969
  8  2.0794e-05
  9  6.88929
  10  1.60557e-05
  11  7.29537
  12  16.4799
  13  1.22639
  14  19.2554
  15  1.0545e-05
  16  1.60075e-06
  17  0.0174647
  18  1.85708e-06
  19  0.209706
  20  0.205454
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  2.079e-05  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.303e+00  2.055e-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:  8.654e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219804/likelihoodResults_262656001_262915201_4FGL_J1049.8+1429_daily_bin90.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): 102
logL (Free Index) = 6432.49064732
delta logL = -0.00037211691415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6432.49027554
delta logL = -3.42972271028e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11283E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5502       1.0000          .0000       10.000    
     3 'Normalizat'    .86549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3028       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6432.490     FROM MIGRAD    STATUS=FAILED        96 CALLS      267 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10738E-03    137.29        .32638E-02** at limit **
   2  Index         2.3705        7.1432        .50000        .13242E-04
   3  Normalizat    .86538        .12089E-01    .27004E-03   -.70501E-03
   4  Prefactor     1.3029        .12318E-01    .22846E-03   -.55259E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6432.490     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      381 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10738E-03    137.29        .71461E-03** at limit **
   2  Index         2.3705        7.1432        .40400E-03    .13242E-04
   3  Normalizat    .86538        .12089E-01    .31044E-05   -.70501E-03
   4  Prefactor     1.3029        .12318E-01    .22624E-05   -.55259E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6432.490     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      431 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    89.918        .65275E-02** at limit **
   2  Index         2.2356        6.0417        .50000        .98498E-06
   3  Normalizat    .86539        .95267E-02    .54008E-04    .50666E-02
   4  Prefactor     1.3029        .97078E-02    .45692E-04    .60795E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.23561
  Normalizat = 0.865388
  Prefactor  = 1.3029
 **********
 **   18 **HESSE 
 **********

 FCN=   6432.490     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      460 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1891.4        .26110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2356        5.6514        .50000       -.58582    
   3  Normalizat    .86539        .50674E-01    .10802E-04   -.97687    
   4  Prefactor     1.3029        .51638E-01    .91383E-05   -.83221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65106e-08
Minuit parameter uncertainties:
  1  0.00693384
  2  993.547
  3  0.0506764
  4  0.0516396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219804': 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): 102
logL (Free Index) = 6432.4902739
delta logL = 1.30373518914e-06

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  6.934e-03  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.236e+00  9.935e+02  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.303e+00  5.164e-02  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:  8.654e-01  5.068e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.467 14.483

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/219804/cmap_HighResolution_262656001_262915201_4FGL_J1049.8+1429_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-02 17:06:17.814930', job_id='219804', GAL2='1.30', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630627577.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='90' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:06:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 219804: <4FGL_J1049.8+1429_daily_bin90> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin90> 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) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 16:53:12 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:12 2021
Terminated at Thu Sep  2 17:06:18 2021
Results reported at Thu Sep  2 17:06:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin90 162.467 14.4835 262656001 262915201 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 :                                   598.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            898 sec.

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

