/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 121 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 = 7487
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin319
RA = 150.294, Dec = 29.188
tmin = 322012801, tmax = 322272001
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='656059', job_status='RUN', time_executed='2021-09-01 09:53:54.987376', time_epoch_executed='1630515234.99' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656059/ft1_4FGL_J1001.1+2911_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656059/ft1_4FGL_J1001.1+2911_daily_bin319.fits outfile=/scratch/kocevski/656059/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin319.fits ra=150.294 dec=29.188 rad=12.0 tmin=322012801.0 tmax=322272001.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.47
user 3.16
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.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/656059/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin319.fits evtable="EVENTS" outfile="/scratch/kocevski/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.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.65
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/656059/ltcube_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.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/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits
.....................!
real 12.97
user 12.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/656059/ltcube_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.fits outfile=/scratch/kocevski/656059/expmap_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.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/656059/ltcube_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.fits
.....................!
real 191.30
user 185.14
sys 5.53

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 J1001.1+2911 @ 150.294 29.188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits scfile=/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits outfile=/scratch/kocevski/656059/cmap_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.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=150.294 yref=29.188 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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits scfile=/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits outfile=/scratch/kocevski/656059/cmap_HighResolution_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.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=150.294 yref=29.188 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/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/656059/Model_4FGL_J1001.1+2911_daily_bin319.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/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits.....................!
real 50.44
user 48.67
sys 1.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits', '/scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits', expMap='/scratch/kocevski/656059/expmap_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.fits', expCube='/scratch/kocevski/656059/ltcube_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/656059/Model_4FGL_J1001.1+2911_daily_bin319.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1001.1+2911'

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/656059/ft1_filtered_4FGL_J1001.1+2911_daily_bin319.fits
Spacecraft file(s): /scratch/kocevski/656059/ft2_4FGL_J1001.1+2911_daily_bin319.fits
Exposure map: /scratch/kocevski/656059/expmap_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.fits
Exposure cube: /scratch/kocevski/656059/ltcube_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/656059/Model_4FGL_J1001.1+2911_daily_bin319.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) = 5559.61721274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9965       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.775       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2626       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3519       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2999       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0299       1.0000         .10000E-03   10000.    
    16 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.392       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6062       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20456E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2169       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5559.591     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2724 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9965        3.4151        .12734E-06    .12412E-04
   2  norm          .10000E-03    .72786       -.71791E-07** at limit **
   3  Prefactor     .10000E-03    23.180       -.76513E-06** at limit **
   4  Prefactor     4.8224        3.0119        .63445E-06   -.27962E-02
   5  Prefactor     25.769        27.706       -.77005E-06   -.26813E-04
   6  Prefactor     .10000E-03    33.797        .14250E-06** at limit **
   7  Prefactor     7.2616        31.548       -.10787E-05   -.14582E-04
   8  Prefactor     .10000E-03    22.741        .53618E-06** at limit **
   9  Prefactor     7.8745        9.2125       -.51589E-07   -.50462E-04
  10  Prefactor     .10000E-03    2.3834       -.37339E-07** at limit **
  11  Prefactor     .10000E-03    1.4394        .20452E-07** at limit **
  12  norm          6.3513        7.7926       -.21777E-06   -.71532E-04
  13  Prefactor     .10000E-03    2.6765       -.47171E-07** at limit **
  14  Prefactor     2.2837        167.23       -.25208E-04   -.50120E-04
  15  Prefactor     1.0275        3.4541        .17476E-06   -.32823E-03
  16  norm          .10000E-03    12.038       -.96587E-08** at limit **
  17  Prefactor     .10000E-03    20.084        .22373E-06** at limit **
  18  Prefactor     43.396        31.434        .51177E-06    .35598E-04
  19  Prefactor     .10000E-03    2.3745        .29523E-07** at limit **
  20  Prefactor     1.9388        6.3240        .23195E-05   -.35865E-04
  21  Prefactor     4.6061        2.7563       -.11914E-06   -.11907E-03
  22  Prefactor     .10000E-03    19.778        .59992E-07** at limit **
  23  Normalizat    1.2169        .17788       -.39371E-07    .47626E-04
  24  Prefactor     .78382        .18603        .26465E-06    .29477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99654
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82236
  Prefactor  = 25.769
  Prefactor  = 0.0001
  Prefactor  = 7.26157
  Prefactor  = 0.0001
  Prefactor  = 7.87451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.35133
  Prefactor  = 0.0001
  Prefactor  = 2.28372
  Prefactor  = 1.02753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3962
  Prefactor  = 0.0001
  Prefactor  = 1.93878
  Prefactor  = 4.60613
  Prefactor  = 0.000100003
  Normalizat = 1.21687
  Prefactor  = 0.783816
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.591     FROM HESSE     STATUS=OK           399 CALLS     3123 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9965        3.4086        .14289E-03   -1.5362    
   2  norm          .10000E-03    .73470        .62127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8224        4.6381        .74155E-03   -1.5269    
   5  Prefactor     25.769        27.702        .78904E-04   -1.4692    
   6  Prefactor     .10000E-03    33.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2616        31.752        .14884E-03   -1.5169    
   8  Prefactor     .10000E-03    22.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8745        9.2252        .14290E-03   -1.5147    
  10  Prefactor     .10000E-03    2.3854        .11242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5037        .87243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3513        7.7989        .15926E-03   -1.5204    
  13  Prefactor     .10000E-03    2.7206        .23670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2837        180.91        .27061E-03   -1.5406    
  15  Prefactor     1.0275        3.4737        .24224E-03   -1.5505    
  16  norm          .10000E-03    12.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.396        31.314        .60860E-04   -1.4389    
  19  Prefactor     .10000E-03    2.3812        .11188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9388        6.3241        .29817E-03   -1.5429    
  21  Prefactor     4.6061        2.7530        .91262E-04   -1.5279    
  22  Prefactor     .10000E-03    144.02        .64266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2169        .20547        .21670E-03   -.86083    
  24  Prefactor     .78382        .21305        .28392E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06633e-09
Minuit parameter uncertainties:
  1  3.40886
  2  1.10415e-06
  3  5.29767e-05
  4  4.63841
  5  27.7162
  6  1.08351e-05
  7  30.3958
  8  3.38036e-05
  9  9.22687
  10  1.39597e-06
  11  6.45753e-07
  12  7.80016
  13  3.10323e-06
  14  40.7794
  15  3.47433
  16  1.38076e-05
  17  9.07688e-06
  18  31.3258
  19  4.77494e-06
  20  6.32624
  21  2.75306
  22  0.00127025
  23  0.20561
  24  0.213269
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.458e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  7.838e-01  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.217e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656059/likelihoodResults_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.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) = 5559.59440725
delta logL = -0.00316265644415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5559.59124446
delta logL = 1.29125510284e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2880       1.0000          .0000       10.000    
     3 'Normalizat'    1.2169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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=   5559.591     FROM MIGRAD    STATUS=FAILED       116 CALLS      273 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31021E-03    .34188E-01    .98476E-02** at limit **
   2  Index         4.0332        3.6031        .50000        .72430E-04
   3  Normalizat    1.2169        .20771E-02    .21670E-03    .18584E-01
   4  Prefactor     .78382        .22434E-02    .28392E-03    .87371E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5559.591     FROM SIMPLEX   STATUS=PROGRESS      47 CALLS      320 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31746E-02    .34188E-01    .27288E-03    .85904E-01
   2  Index         3.8768        3.6031        .53867E-02    .72430E-04
   3  Normalizat    1.2166        .20771E-02    .10168E-03    .18584E-01
   4  Prefactor     .78346        .22434E-02    .10808E-03    .87371E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5559.591     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      376 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30375E-02    .24516        .83807E-02    .21734E-02
   2  Index         3.9046        1.7237        .50000        .12680E-04
   3  Normalizat    1.2167        .40495E-02    .43341E-04    .36120E-01
   4  Prefactor     .78367        .43732E-02    .56783E-04   -.12910E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00303752
  Index      = 3.90463
  Normalizat = 1.21667
  Prefactor  = 0.783667
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.591     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      413 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30375E-02    2.2719        .97285E-02   -1.5697    
   2  Index         3.9046        7.9173        .28134E-01   -.22087    
   3  Normalizat    1.2167        .14075E-01    .86681E-05   -.86089    
   4  Prefactor     .78367        .15167E-01    .11357E-04   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43655e-08
Minuit parameter uncertainties:
  1  0.163393
  2  50.9825
  3  0.0140754
  4  0.0151669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656059': 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) = 5559.5911134
delta logL = 0.000131189214699

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.038e-03  1.634e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.905e+00  5.098e+01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  7.837e-01  1.517e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.217e+00  1.408e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 150.294 29.188

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/656059/cmap_HighResolution_322012801_322272001_4FGL_J1001.1+2911_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-01 10:04:37.232582', job_id='656059', GAL2='0.78', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630515877.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.31e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='319' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 656059: <4FGL_J1001.1+2911_daily_bin319> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin319> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:50:40 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:50:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:50:42 2021
Terminated at Wed Sep  1 10:04:38 2021
Results reported at Wed Sep  1 10:04:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin319 150.294 29.188 322012801 322272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1001.1+2911 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

