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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin946
RA = 150.294, Dec = 29.188
tmin = 484531201, tmax = 484790401
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='659594', job_status='RUN', time_executed='2021-09-01 10:04:50.708547', time_epoch_executed='1630515890.71' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659594/ft1_4FGL_J1001.1+2911_daily_bin946.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659594/ft2_4FGL_J1001.1+2911_daily_bin946.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659594/ft1_4FGL_J1001.1+2911_daily_bin946.fits outfile=/scratch/kocevski/659594/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin946.fits ra=150.294 dec=29.188 rad=12.0 tmin=484531201.0 tmax=484790401.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 7.15
user 6.83
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659594/ft1_filtered_4FGL_J1001.1+2911_daily_bin946.fits evtable="EVENTS" scfile=/scratch/kocevski/659594/ft2_4FGL_J1001.1+2911_daily_bin946.fits sctable="SC_DATA" expcube=/scratch/kocevski/659594/ltcube_484531201_484790401_4FGL_J1001.1+2911_daily_bin946.fits outfile=/scratch/kocevski/659594/expmap_484531201_484790401_4FGL_J1001.1+2911_daily_bin946.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/659594/ltcube_484531201_484790401_4FGL_J1001.1+2911_daily_bin946.fits
.....................!
real 190.50
user 184.97
sys 5.02

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/659594/ft1_filtered_4FGL_J1001.1+2911_daily_bin946.fits scfile=/scratch/kocevski/659594/ft2_4FGL_J1001.1+2911_daily_bin946.fits outfile=/scratch/kocevski/659594/cmap_484531201_484790401_4FGL_J1001.1+2911_daily_bin946.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.90
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659594/ft1_filtered_4FGL_J1001.1+2911_daily_bin946.fits scfile=/scratch/kocevski/659594/ft2_4FGL_J1001.1+2911_daily_bin946.fits outfile=/scratch/kocevski/659594/cmap_HighResolution_484531201_484790401_4FGL_J1001.1+2911_daily_bin946.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.72
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72336       1.0000         .10000E-03   10000.    
    12 'norm      '    43.438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7276       1.0000         .10000E-03   10000.    
    16 'norm      '    30.375       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.686       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5679       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0321       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92976       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=   5710.314     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2709 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2307       -.17213E-07** at limit **
   2  norm          .10000E-03    .43725       -.27182E-07** at limit **
   3  Prefactor     6.1278        149.82        .14644E-05   -.45111E-05
   4  Prefactor     .25524        1.8613       -.76782E-06   -.12697E-03
   5  Prefactor     5.3574        27.914       -.13164E-05    .23686E-04
   6  Prefactor     12.388        58.505       -.21527E-04    .73678E-04
   7  Prefactor     34.925        39.078       -.46102E-05    .78556E-04
   8  Prefactor     .10000E-03    60.373       -.57025E-05** at limit **
   9  Prefactor     .10000E-03    2.7661        .72372E-07** at limit **
  10  Prefactor     .10000E-03    3.9242        .35892E-05** at limit **
  11  Prefactor     .72290        2.3720       -.15282E-05   -.12122E-02
  12  norm          43.435        12.489       -.12608E-06    .10524E-03
  13  Prefactor     .10000E-03    1.9192        .36262E-06** at limit **
  14  Prefactor     .10000E-03    32.582        .14084E-04** at limit **
  15  Prefactor     1.7315        4.0326       -.29597E-05   -.59953E-03
  16  norm          30.377        13.756       -.26595E-06    .11779E-03
  17  Prefactor     16.672        63.243       -.27744E-04    .11548E-03
  18  Prefactor     .10000E-03    20.997        .16239E-05** at limit **
  19  Prefactor     .10000E-03    4.2669       -.48845E-06** at limit **
  20  Prefactor     .10000E-03    3.7992       -.33610E-05** at limit **
  21  Prefactor     5.5678        2.8904       -.22753E-06    .15218E-03
  22  Prefactor     .10000E-03    27.578       -.12588E-04** at limit **
  23  Normalizat    1.0319        .17609        .37394E-05    .27273E-03
  24  Prefactor     .92993        .18451        .84937E-06    .34916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.12785
  Prefactor  = 0.255244
  Prefactor  = 5.35736
  Prefactor  = 12.388
  Prefactor  = 34.9247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.722901
  norm       = 43.435
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.73147
  norm       = 30.3774
  Prefactor  = 16.6724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56785
  Prefactor  = 0.000100003
  Normalizat = 1.03195
  Prefactor  = 0.929931
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.314     FROM HESSE     STATUS=OK           387 CALLS     3096 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2392        .81866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .43855        .48788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1278        149.48        .16219E-03   -1.5213    
   4  Prefactor     .25524        10.599        .19200E-02   -1.5607    
   5  Prefactor     5.3574        27.742        .17362E-03   -1.5245    
   6  Prefactor     12.388        58.534        .11377E-03   -1.5004    
   7  Prefactor     34.925        39.164        .67807E-04   -1.4525    
   8  Prefactor     .10000E-03    60.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7839        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9184        .14571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72290        2.4248        .19955E-03   -1.5538    
  12  norm          43.435        12.505        .60828E-04   -1.4389    
  13  Prefactor     .10000E-03    1.9406        .20299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7315        4.0971        .21770E-03   -1.5445    
  16  norm          30.377        13.758        .72698E-04   -1.4605    
  17  Prefactor     16.672        62.848        .98050E-04   -1.4891    
  18  Prefactor     .10000E-03    21.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3458        .15215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8410        .14357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5678        2.8917        .88825E-04   -1.5236    
  22  Prefactor     .10000E-03    27.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0319        .20441        .22396E-03   -.91968    
  24  Prefactor     .92993        .21351        .26267E-03   -.95103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39017e-08
Minuit parameter uncertainties:
  1  3.25386e-06
  2  8.39602e-07
  3  60.7006
  4  3.2895
  5  24.4
  6  53.9424
  7  39.1927
  8  0.000292507
  9  4.12997e-07
  10  6.85901e-05
  11  2.42513
  12  12.5057
  13  4.85344e-05
  14  0.000761479
  15  4.09779
  16  13.7593
  17  63.099
  18  4.32034e-05
  19  2.66678e-05
  20  5.13784e-05
  21  2.8918
  22  0.000553833
  23  0.204569
  24  0.2137
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  7.229e-01  2.425e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.299e-01  2.137e-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.032e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/659594/likelihoodResults_484531201_484790401_4FGL_J1001.1+2911_daily_bin946.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): 0
logL (Free Index) = 5709.88458459
delta logL = 0.429191425183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.88053012
delta logL = 0.433245895455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64644       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1430       1.0000          .0000       10.000    
     3 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92598       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=   5709.881     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64646        .93180        .11855E-02   -.99052E-03
   2  Index         1.1430        .47149        .28808       -.93102E-04
   3  Normalizat    1.0381        .16115        .41439E-01   -.53110E-04
   4  Prefactor     .92585        .18130        .45335E-01    .43646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.646464
  Index      = 1.14302
  Normalizat = 1.03812
  Prefactor  = 0.925846
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.881     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64646        1.3282        .47419E-04   -1.5547    
   2  Index         1.1430        .77772        .10967E-01   -.88103    
   3  Normalizat    1.0381        .18541        .22324E-03   -.91764    
   4  Prefactor     .92585        .20856        .26306E-03   -.95244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7803e-10
Minuit parameter uncertainties:
  1  1.32826
  2  0.785685
  3  0.185528
  4  0.208739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659594': 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) = 5709.88052985
delta logL = 0.433246161139

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  6.465e-01  1.328e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.143e+00  7.857e-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:  9.258e-01  2.087e-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.038e+00  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/659594/cmap_HighResolution_484531201_484790401_4FGL_J1001.1+2911_daily_bin946.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.65e-08', time_completed='2021-09-01 10:15:59.738763', job_id='659594', GAL2='0.93', fit_tolerance='1e-08', EG2='1.04', EG='1.03', time_epoch_completed='1630516559.74', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.33e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='946' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 659594: <4FGL_J1001.1+2911_daily_bin946> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin946 150.294 29.188 484531201 484790401 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 :                                   662.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

