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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin723
RA = 150.294, Dec = 29.188
tmin = 426729601, tmax = 426988801
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='659211', job_status='RUN', time_executed='2021-09-01 10:03:27.496714', time_epoch_executed='1630515807.5' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659211/ft1_4FGL_J1001.1+2911_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659211/ft2_4FGL_J1001.1+2911_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659211/ft1_4FGL_J1001.1+2911_daily_bin723.fits outfile=/scratch/kocevski/659211/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin723.fits ra=150.294 dec=29.188 rad=12.0 tmin=426729601.0 tmax=426988801.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 5.84
user 5.32
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659211/ft1_filtered_4FGL_J1001.1+2911_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/659211/ft2_4FGL_J1001.1+2911_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/659211/ltcube_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.fits outfile=/scratch/kocevski/659211/expmap_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.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/659211/ltcube_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.fits
.....................!
real 190.73
user 185.76
sys 4.62

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/659211/ft1_filtered_4FGL_J1001.1+2911_daily_bin723.fits scfile=/scratch/kocevski/659211/ft2_4FGL_J1001.1+2911_daily_bin723.fits outfile=/scratch/kocevski/659211/cmap_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.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 1.02
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659211/ft1_filtered_4FGL_J1001.1+2911_daily_bin723.fits scfile=/scratch/kocevski/659211/ft2_4FGL_J1001.1+2911_daily_bin723.fits outfile=/scratch/kocevski/659211/cmap_HighResolution_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.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.63
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659211/ft1_filtered_4FGL_J1001.1+2911_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/659211/ft2_4FGL_J1001.1+2911_daily_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659211/Model_4FGL_J1001.1+2911_daily_bin723.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/659211/ft1_filtered_4FGL_J1001.1+2911_daily_bin723.fits.....................!
real 50.88
user 47.33
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659211/ft1_filtered_4FGL_J1001.1+2911_daily_bin723.fits', '/scratch/kocevski/659211/ft2_4FGL_J1001.1+2911_daily_bin723.fits', expMap='/scratch/kocevski/659211/expmap_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.fits', expCube='/scratch/kocevski/659211/ltcube_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659211/Model_4FGL_J1001.1+2911_daily_bin723.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/659211/ft1_filtered_4FGL_J1001.1+2911_daily_bin723.fits
Spacecraft file(s): /scratch/kocevski/659211/ft2_4FGL_J1001.1+2911_daily_bin723.fits
Exposure map: /scratch/kocevski/659211/expmap_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.fits
Exposure cube: /scratch/kocevski/659211/ltcube_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659211/Model_4FGL_J1001.1+2911_daily_bin723.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) = 5600.60873148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3294       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0983       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46600       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    115.44       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.664       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48806E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .48483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84259       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1221       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=   5600.595     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2853 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3302        2.9737        .63773E-06   -.22904E-02
   2  norm          1.0985        1.5585       -.30887E-07   -.13981E-03
   3  Prefactor     .10000E-03    17.410        .17408E-06** at limit **
   4  Prefactor     .46584        4.7871        .71235E-06   -.40820E-03
   5  Prefactor     24.182        33.947       -.36324E-05   -.12561E-03
   6  Prefactor     .10000E-03    20.645       -.38200E-06** at limit **
   7  Prefactor     115.46        64.686        .59277E-05    .20022E-03
   8  Prefactor     .10000E-03    8.6995       -.57692E-07** at limit **
   9  Prefactor     11.434        7.2301        .23076E-07   -.10165E-03
  10  Prefactor     .10000E-03    3.4026        .34994E-07** at limit **
  11  Prefactor     .10000E-03    1.5956        .23917E-06** at limit **
  12  norm          .10000E-03    3.7667        .25828E-07** at limit **
  13  Prefactor     5.8728        5.4634       -.81295E-07   -.75532E-04
  14  Prefactor     45.122        41.154       -.28008E-05   -.95956E-04
  15  Prefactor     44.658        10.314        .69526E-07   -.43606E-04
  16  norm          .10000E-03    4.5144       -.10896E-07** at limit **
  17  Prefactor     .10000E-03    35.845        .33939E-06** at limit **
  18  Prefactor     63.872        54.171       -.61918E-06   -.58612E-04
  19  Prefactor     .10001E-03    6.5486        .15582E-06** at limit **
  20  Prefactor     .10000E-03    12.505       -.57044E-07** at limit **
  21  Prefactor     .49033        2.4960        .22617E-06   -.26097E-03
  22  Prefactor     .10000E-03    14.253       -.64744E-07** at limit **
  23  Normalizat    .84264        .19745       -.82597E-06   -.78696E-04
  24  Prefactor     1.1220        .19777        .41397E-06   -.12176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33019
  norm       = 1.09846
  Prefactor  = 0.0001
  Prefactor  = 0.465843
  Prefactor  = 24.1823
  Prefactor  = 0.0001
  Prefactor  = 115.461
  Prefactor  = 0.0001
  Prefactor  = 11.4337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.8728
  Prefactor  = 45.1217
  Prefactor  = 44.6583
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.8725
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.490328
  Prefactor  = 0.0001
  Normalizat = 0.84264
  Prefactor  = 1.12196
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.595     FROM HESSE     STATUS=OK           399 CALLS     3252 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3302        4.5881        .90908E-03   -1.5343    
   2  norm          1.0985        1.3563        .10714E-02   -1.5498    
   3  Prefactor     .10000E-03    17.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .46584        5.2032        .31663E-03   -1.5571    
   5  Prefactor     24.182        34.117        .81467E-04   -1.4724    
   6  Prefactor     .10000E-03    20.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     115.46        65.184        .37447E-04   -1.3555    
   8  Prefactor     .10000E-03    8.6998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.434        7.2226        .11847E-03   -1.5032    
  10  Prefactor     .10000E-03    3.4098        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7059        .18154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7867        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8728        5.4470        .14835E-03   -1.5223    
  14  Prefactor     45.122        41.283        .59699E-04   -1.4363    
  15  Prefactor     44.658        10.243        .59991E-04   -1.4370    
  16  norm          .10000E-03    4.5183        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     63.872        45.797        .50153E-04   -1.4108    
  19  Prefactor     .10001E-03    96.794        .30361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .49033        4.5617        .21766E-02   -1.5568    
  22  Prefactor     .10000E-03    14.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84264        .23156        .27184E-03   -.98506    
  24  Prefactor     1.1220        .23501        .25727E-03   -.88768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45174e-08
Minuit parameter uncertainties:
  1  4.58863
  2  1.35635
  3  1.14194e-05
  4  3.11376
  5  34.1444
  6  1.63814e-05
  7  65.2241
  8  1.43293e-06
  9  7.22317
  10  5.63057e-07
  11  1.50987e-05
  12  2.92773e-06
  13  5.44747
  14  41.3088
  15  10.2432
  16  1.28829e-06
  17  2.57409e-05
  18  45.8221
  19  0.00237211
  20  1.13712e-05
  21  2.99114
  22  2.56444e-06
  23  0.231833
  24  0.235225
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.510e-05  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:  1.122e+00  2.352e-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:  8.426e-01  2.318e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659211/likelihoodResults_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.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) = 5600.59664022
delta logL = -0.0017607311438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5600.59487954
delta logL = -4.96856955579e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2978       1.0000          .0000       10.000    
     3 'Normalizat'    .84259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1221       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=   5600.595     FROM MIGRAD    STATUS=FAILED        98 CALLS      266 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10546E-03    28.423        .18236E-02** at limit **
   2  Index         2.4310        7.6974        .50000       -.69612E-04
   3  Normalizat    .84264        .13734E-01    .27184E-03    .19907E-04
   4  Prefactor     1.1220        .14853E-01    .25727E-03   -.66860E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5600.595     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      378 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10546E-03    28.423        .29395E-03** at limit **
   2  Index         2.4310        7.6974        .73716E-02   -.69612E-04
   3  Normalizat    .84264        .13734E-01    .24827E-04    .19907E-04
   4  Prefactor     1.1220        .14853E-01    .17660E-04   -.66860E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5600.595     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      431 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3721        .36472E-02** at limit **
   2  Index         2.7427        8.3848        .50000        .98087E-06
   3  Normalizat    .84264        .59957E-02    .10874E-04    .67939E-03
   4  Prefactor     1.1220        .64846E-02    .10291E-04    .67324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.74273
  Normalizat = 0.84264
  Prefactor  = 1.12197
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.595     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      460 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    211.82        .14589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7427        6.6229        .50000       -.46839    
   3  Normalizat    .84264        .36177E-01    .21747E-05   -.98506    
   4  Prefactor     1.1220        .39081E-01    .20581E-05   -.88768    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.20637e-09
Minuit parameter uncertainties:
  1  2.6776e-05
  2  277.345
  3  0.0361782
  4  0.0390821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659211': 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) = 5600.59487387
delta logL = 5.62072818866e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.678e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.743e+00  2.773e+02  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:  1.122e+00  3.908e-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:  8.426e-01  3.618e-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/659211/cmap_HighResolution_426729601_426988801_4FGL_J1001.1+2911_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-01 10:14:29.641889', job_id='659211', GAL2='1.12', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630516469.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='723' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:14:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 659211: <4FGL_J1001.1+2911_daily_bin723> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin723> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:22 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:00:25 2021
Terminated at Wed Sep  1 10:14:30 2021
Results reported at Wed Sep  1 10:14:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin723 150.294 29.188 426729601 426988801 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 :                                   655.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            848 sec.

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

