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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin893
RA = 150.294, Dec = 29.188
tmin = 470793601, tmax = 471052801
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='659501', job_status='RUN', time_executed='2021-09-01 10:04:16.075719', time_epoch_executed='1630515856.08' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659501

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659501/ft1_4FGL_J1001.1+2911_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659501/ft2_4FGL_J1001.1+2911_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659501/ft1_4FGL_J1001.1+2911_daily_bin893.fits outfile=/scratch/kocevski/659501/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin893.fits ra=150.294 dec=29.188 rad=12.0 tmin=470793601.0 tmax=471052801.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 4.80
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659501/ft2_4FGL_J1001.1+2911_daily_bin893.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/659501/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/659501/ft1_filtered_4FGL_J1001.1+2911_daily_bin893.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659501/ft1_filtered_4FGL_J1001.1+2911_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/659501/ft2_4FGL_J1001.1+2911_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/659501/ltcube_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.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/659501/ft2_4FGL_J1001.1+2911_daily_bin893.fits
.....................!
real 11.57
user 11.25
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659501/ft1_filtered_4FGL_J1001.1+2911_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/659501/ft2_4FGL_J1001.1+2911_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/659501/ltcube_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.fits outfile=/scratch/kocevski/659501/expmap_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.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/659501/ltcube_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.fits
.....................!
real 189.23
user 184.98
sys 3.81

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/659501/ft1_filtered_4FGL_J1001.1+2911_daily_bin893.fits scfile=/scratch/kocevski/659501/ft2_4FGL_J1001.1+2911_daily_bin893.fits outfile=/scratch/kocevski/659501/cmap_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659501/ft1_filtered_4FGL_J1001.1+2911_daily_bin893.fits scfile=/scratch/kocevski/659501/ft2_4FGL_J1001.1+2911_daily_bin893.fits outfile=/scratch/kocevski/659501/cmap_HighResolution_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.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.58
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2790       1.0000         .10000E-03   10000.    
     2 'norm      '    .11069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.897       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.885       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35053E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.0519       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.639       1.0000         .10000E-03   10000.    
    16 'norm      '    24.874       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29532E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1634       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2791       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.148       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99143       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95995       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=   5699.685     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2715 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2792        4.0519        .13491E-07    .40738E-04
   2  norm          .10000E-03    1.3270        .45019E-07** at limit **
   3  Prefactor     .10000E-03    27.221       -.13222E-05** at limit **
   4  Prefactor     .10000E-03    2.4628       -.26949E-08** at limit **
   5  Prefactor     14.882        22.214       -.33471E-05   -.27213E-03
   6  Prefactor     .10000E-03    47.543        .44614E-06** at limit **
   7  Prefactor     .10000E-03    29.886        .11024E-05** at limit **
   8  Prefactor     41.879        39.904       -.19489E-05   -.14610E-03
   9  Prefactor     7.5417        5.6432        .25836E-06    .13385E-03
  10  Prefactor     4.5843        4.7886        .16235E-06    .10882E-03
  11  Prefactor     .10000E-03    .98788       -.19551E-07** at limit **
  12  norm          7.0508        6.4957        .14103E-05   -.99492E-03
  13  Prefactor     .10000E-03    3.9228        .37726E-07** at limit **
  14  Prefactor     .10000E-03    15.884       -.23746E-06** at limit **
  15  Prefactor     16.645        5.7232        .54893E-08    .21822E-04
  16  norm          24.879        12.014       -.31485E-07   -.48174E-05
  17  Prefactor     .10000E-03    18.428        .83007E-06** at limit **
  18  Prefactor     .10000E-03    19.682       -.38251E-06** at limit **
  19  Prefactor     .10000E-03    3.6185        .13851E-07** at limit **
  20  Prefactor     7.1633        5.9967        .80911E-07    .23665E-04
  21  Prefactor     2.2791        1.9298       -.83090E-08   -.28195E-04
  22  Prefactor     19.151        26.525        .70533E-06    .58071E-04
  23  Normalizat    .99138        .17512        .11660E-06   -.14006E-04
  24  Prefactor     .96004        .18772       -.10896E-06    .55561E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.27917
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.8794
  Prefactor  = 7.54173
  Prefactor  = 4.58433
  Prefactor  = 0.000100002
  norm       = 7.0508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6451
  norm       = 24.8793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.16326
  Prefactor  = 2.27911
  Prefactor  = 19.1511
  Normalizat = 0.991378
  Prefactor  = 0.960039
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.685     FROM HESSE     STATUS=OK           403 CALLS     3118 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2792        4.0543        .11864E-03   -1.5207    
   2  norm          .10000E-03    2.7505        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5316        .23105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.882        23.510        .10377E-03   -1.4936    
   6  Prefactor     .10000E-03    47.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.879        40.574        .61941E-04   -1.4413    
   9  Prefactor     7.5417        5.6612        .14602E-03   -1.5159    
  10  Prefactor     4.5843        4.7917        .16455E-03   -1.5280    
  11  Prefactor     .10000E-03    29.138        .14223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.0508        7.7768        .75532E-03   -1.5177    
  13  Prefactor     .10000E-03    4.0181        .28989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.645        5.6973        .98189E-04   -1.4892    
  16  norm          24.879        11.998        .80319E-04   -1.4710    
  17  Prefactor     .10000E-03    18.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5614        .27587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1633        5.9882        .14987E-03   -1.5173    
  21  Prefactor     2.2791        1.9292        .92528E-04   -1.5406    
  22  Prefactor     19.151        26.574        .91530E-04   -1.4832    
  23  Normalizat    .99138        .20277        .23058E-03   -.93320    
  24  Prefactor     .96004        .21917        .26184E-03   -.94074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37027e-09
Minuit parameter uncertainties:
  1  4.05444
  2  4.07482e-06
  3  0.000200814
  4  5.55617e-06
  5  23.5249
  6  0.000101299
  7  0.000165127
  8  40.6004
  9  5.66162
  10  4.79213
  11  0.000477087
  12  7.77796
  13  2.75208e-06
  14  2.9719e-05
  15  5.69753
  16  11.9995
  17  0.00010016
  18  5.28449e-05
  19  2.32245e-05
  20  5.98871
  21  1.92927
  22  26.5902
  23  0.202926
  24  0.219377
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.771e-04  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:  9.600e-01  2.194e-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:  9.914e-01  2.029e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659501/likelihoodResults_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.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) = 5699.68562827
delta logL = -0.00016703653182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5698.16692988
delta logL = 1.51853135814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33261E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.0163       1.0000          .0000       10.000    
     3 'Normalizat'    .88862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0326       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.

 FCN=   5698.167     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      262 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33425E-01    .34834        .19852E-02    .37936E-02
   2  Index         5.0144        2.5468        .10480        .15644E-03
   3  Normalizat    .88828        .45896E-01    .44756E-01    .17086E-04
   4  Prefactor     1.0329        .51614E-01    .41056E-01    .18873E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0334253
  Index      = 5.01438
  Normalizat = 0.888276
  Prefactor  = 1.03288
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.167     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      297 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33425E-01    .74159        .89718E-04   -1.5671    
   2  Index         5.0144        3.9732        .40614E-02    .28751E-02
   3  Normalizat    .88828        .15847        .24188E-03   -.96873    
   4  Prefactor     1.0329        .17586        .25349E-03   -.91641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55557e-10
Minuit parameter uncertainties:
  1  0.314416
  2  4.59214
  3  0.158552
  4  0.175959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659501': 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) = 5698.16692725
delta logL = 1.51853398689

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.343e-02  3.144e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  5.014e+00  4.592e+00  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.033e+00  1.760e-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.883e-01  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 150.294 29.188
Photon Index (Free Index): 5.01 +/- 4.59
Photon Flux (Free Index): 7.06e-08 +/- 4.61e-08
Energy Flux (Free Index): 9.38e-06 +/- 7.73e-06

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/659501/cmap_HighResolution_470793601_471052801_4FGL_J1001.1+2911_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', comment='SUCCESS', energy_flux2='9.38e-06', dlogl='1.52e+00', photon_flux2='7.06e-08', job_status='DONE', time_completed='2021-09-01 10:14:58.235999', photon_index_error2='4.59', photon_index2='5.01', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.59e-08', energy_flux_error2='7.73e-06', EG='0.99', time_epoch_completed='1630516498.24', return_code='0', job_id='659501', GAL2='1.03', EG2='0.89', return_code2='102', photon_flux_error2='4.61e-08', ts2='3.25', photon_index='2.27' WHERE bin_id='893' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:14:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 659501: <4FGL_J1001.1+2911_daily_bin893> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin893> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:40 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00: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 10:00:42 2021
Terminated at Wed Sep  1 10:14:59 2021
Results reported at Wed Sep  1 10:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin893 150.294 29.188 470793601 471052801 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 :                                   639.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

