/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1050.1+0432_daily_bin351
RA = 162.546, Dec = 4.5377
tmin = 330307201, tmax = 330566401
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='236095', job_status='RUN', time_executed='2021-09-02 17:41:58.007037', time_epoch_executed='1630629718.01' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236095

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236095/ft1_4FGL_J1050.1+0432_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236095/ft1_4FGL_J1050.1+0432_daily_bin351.fits outfile=/scratch/kocevski/236095/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin351.fits ra=162.546 dec=4.5377 rad=12.0 tmin=330307201.0 tmax=330566401.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 3.91
user 3.61
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.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/236095/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin351.fits evtable="EVENTS" outfile="/scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/236095/ltcube_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.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/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits
.....................!
real 15.70
user 15.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/236095/ltcube_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.fits outfile=/scratch/kocevski/236095/expmap_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.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/236095/ltcube_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.fits
.....................!
real 190.91
user 186.06
sys 4.41

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

Setting source of interest to:
4FGL J1050.1+0432 @ 162.546 4.5377

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits scfile=/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits outfile=/scratch/kocevski/236095/cmap_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.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.546 yref=4.5377 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits scfile=/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits outfile=/scratch/kocevski/236095/cmap_HighResolution_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.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.546 yref=4.5377 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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236095/Model_4FGL_J1050.1+0432_daily_bin351.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/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits....................!
real 68.70
user 67.25
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits', '/scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits', expMap='/scratch/kocevski/236095/expmap_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.fits', expCube='/scratch/kocevski/236095/ltcube_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236095/Model_4FGL_J1050.1+0432_daily_bin351.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1050.1+0432'

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/236095/ft1_filtered_4FGL_J1050.1+0432_daily_bin351.fits
Spacecraft file(s): /scratch/kocevski/236095/ft2_4FGL_J1050.1+0432_daily_bin351.fits
Exposure map: /scratch/kocevski/236095/expmap_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.fits
Exposure cube: /scratch/kocevski/236095/ltcube_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236095/Model_4FGL_J1050.1+0432_daily_bin351.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) = 7223.41094321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1369       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.600       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0973       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17712E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6129       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7654       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5848       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2742       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91000       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7223.371     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     1965 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1357        14.963       -.55193E-07   -.27966E-05
   2  Prefactor     .10000E-03    13.037       -.66370E-07** at limit **
   3  norm          .10000E-03    8.1826       -.17738E-06** at limit **
   4  Prefactor     12.601        11.316        .17391E-06    .40288E-03
   5  Prefactor     .10000E-03    51.720        .31717E-04** at limit **
   6  Prefactor     .10000E-03    80.405       -.20932E-04** at limit **
   7  Prefactor     .10000E-03    40.893       -.15577E-04** at limit **
   8  norm          .10000E-03    .86920       -.32478E-07** at limit **
   9  Prefactor     2.0949        3.2412        .75980E-07   -.16726E-02
  10  Prefactor     .10000E-03    1.1255        .87714E-07** at limit **
  11  Prefactor     3.2995        7.2281        .65758E-06   -.77292E-03
  12  Prefactor     .10000E-03    2.3645        .31521E-07** at limit **
  13  norm          4.6643        .92424       -.32914E-07    .76513E-05
  14  Prefactor     5.6103        8.4219        .29963E-06   -.31299E-03
  15  norm          1.7652        1.2259       -.69844E-07   -.77438E-04
  16  Prefactor     3.1557        14.488       -.27299E-06   -.11456E-04
  17  Prefactor     6.5844        4.9161       -.19649E-06   -.36930E-04
  18  norm          .10000E-03    7.6112       -.18924E-08** at limit **
  19  Prefactor     3.2740        2.7825        .30054E-07   -.36230E-04
  20  Normalizat    .90997        .18746       -.11346E-07    .34029E-04
  21  Prefactor     1.1721        .15194       -.18628E-06    .77201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.13566
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.09487
  Prefactor  = 0.000100005
  Prefactor  = 3.29946
  Prefactor  = 0.0001
  norm       = 4.6643
  Prefactor  = 5.6103
  norm       = 1.76524
  Prefactor  = 3.15572
  Prefactor  = 6.58442
  norm       = 0.0001
  Prefactor  = 3.27405
  Normalizat = 0.90997
  Prefactor  = 1.17208
 **********
 **   18 **HESSE 
 **********

 FCN=   7223.371     FROM HESSE     STATUS=OK           323 CALLS     2288 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1357        14.991        .15015E-03   -1.5174    
   2  Prefactor     .10000E-03    13.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.1907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.601        11.292        .11285E-03   -1.4998    
   5  Prefactor     .10000E-03    51.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    80.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6339        .15115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0949        6.5909        .14250E-02   -1.5418    
  10  Prefactor     .10000E-03    23.836        .17380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2995        8.1126        .11144E-02   -1.5345    
  12  Prefactor     .10000E-03    2.3712        .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6643        .93192        .31911E-04   -1.5276    
  14  Prefactor     5.6103        8.5601        .84783E-03   -1.5234    
  15  norm          1.7652        1.2172        .74666E-04   -1.5442    
  16  Prefactor     3.1557        14.528        .22812E-03   -1.5353    
  17  Prefactor     6.5844        4.9219        .15639E-03   -1.5195    
  18  norm          .10000E-03    7.6785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2740        2.7871        .12520E-03   -1.5346    
  20  Normalizat    .90997        .22810        .30081E-03   -.96111    
  21  Prefactor     1.1721        .17867        .23020E-03   -.87195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82474e-09
Minuit parameter uncertainties:
  1  14.9991
  2  1.07191e-06
  3  7.13303e-07
  4  11.2935
  5  0.000199173
  6  1.92764e-05
  7  0.000273462
  8  1.37387e-05
  9  6.59319
  10  0.000664768
  11  8.11531
  12  3.1174e-07
  13  0.931921
  14  8.56193
  15  1.21718
  16  13.5474
  17  4.9222
  18  1.47341e-06
  19  2.78726
  20  0.228347
  21  0.178762
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  3.117e-07  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.172e+00  1.788e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.100e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.546 4.538
Photon Flux Upper Limit: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236095/likelihoodResults_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.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) = 7223.37264974
delta logL = -0.00199743988833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7223.3706523
delta logL = -2.30102159549e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6014       1.0000          .0000       10.000    
     3 'Normalizat'    .90998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1721       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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=   7223.371     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    146.26        .12771E-02** at limit **
   2  Index         2.5487        6.1313        .50000        .12959E-04
   3  Normalizat    .90997        .38958E-01    .30081E-03   -.16818E-04
   4  Prefactor     1.1721        .33568E-01    .23020E-03   -.10420E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7223.371     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      393 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    146.26        .23110E-03** at limit **
   2  Index         2.5487        6.1313        .83634E-04    .12959E-04
   3  Normalizat    .90997        .38958E-01    .12606E-05   -.16818E-04
   4  Prefactor     1.1721        .33568E-01    .10909E-05   -.10420E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7223.371     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      431 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    579.66        .25542E-03** at limit **
   2  Index         2.4016        5.0829        .50000       -.60118E-07
   3  Normalizat    .90997        .17733        .12032E-04    .85980E-04
   4  Prefactor     1.1721        .15277        .92082E-05    .12025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40158
  Normalizat = 0.909971
  Prefactor  = 1.17208
 **********
 **   18 **HESSE 
 **********

 FCN=   7223.371     FROM HESSE     STATUS=OK            29 CALLS      460 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5318        .51085E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4016        6.8701        .50000       -.54648    
   3  Normalizat    .90997        .20536        .24065E-05   -.96111    
   4  Prefactor     1.1721        .17695        .18416E-05   -.87195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79869e-11
Minuit parameter uncertainties:
  1  1.64056e-05
  2  119.432
  3  0.205534
  4  0.177039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236095': 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) = 7223.37065188
delta logL = 4.22232915298e-07

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.641e-05  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.402e+00  1.194e+02  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.172e+00  1.770e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.100e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.546 4.538

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/236095/cmap_HighResolution_330307201_330566401_4FGL_J1050.1+0432_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-02 17:53:19.747780', job_id='236095', GAL2='1.17', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630630399.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='351' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:53:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 236095: <4FGL_J1050.1+0432_daily_bin351> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin351> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 17:41:10 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:41:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 17:41:39 2021
Terminated at Thu Sep  2 17:53:20 2021
Results reported at Thu Sep  2 17:53:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin351 162.546 4.5377 330307201 330566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1050.1+0432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            730 sec.

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

