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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin936
RA = 150.294, Dec = 29.188
tmin = 481939201, tmax = 482198401
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='659575', job_status='RUN', time_executed='2021-09-01 10:03:23.307255', time_epoch_executed='1630515803.31' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659575/ft1_4FGL_J1001.1+2911_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659575/ft2_4FGL_J1001.1+2911_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659575/ft1_4FGL_J1001.1+2911_daily_bin936.fits outfile=/scratch/kocevski/659575/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin936.fits ra=150.294 dec=29.188 rad=12.0 tmin=481939201.0 tmax=482198401.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.70
user 3.35
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659575/ft1_filtered_4FGL_J1001.1+2911_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/659575/ft2_4FGL_J1001.1+2911_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/659575/ltcube_481939201_482198401_4FGL_J1001.1+2911_daily_bin936.fits outfile=/scratch/kocevski/659575/expmap_481939201_482198401_4FGL_J1001.1+2911_daily_bin936.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/659575/ltcube_481939201_482198401_4FGL_J1001.1+2911_daily_bin936.fits
.....................!
real 193.18
user 188.32
sys 4.09

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/659575/ft1_filtered_4FGL_J1001.1+2911_daily_bin936.fits scfile=/scratch/kocevski/659575/ft2_4FGL_J1001.1+2911_daily_bin936.fits outfile=/scratch/kocevski/659575/cmap_481939201_482198401_4FGL_J1001.1+2911_daily_bin936.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.60
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34543E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.715       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0178       1.0000         .10000E-03   10000.    
    12 'norm      '    10.135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8722       1.0000         .10000E-03   10000.    
    16 'norm      '    224.69       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11785E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2727       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86663       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1744       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=   6212.328     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2712 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    3.6525       -.78765E-06** at limit **
   2  norm          .10000E-03    1.1537        .16452E-07** at limit **
   3  Prefactor     .10000E-03    93.253       -.74775E-06** at limit **
   4  Prefactor     9.5298        5.7703        .17190E-06    .13914E-03
   5  Prefactor     .10000E-03    82.514        .12008E-05** at limit **
   6  Prefactor     76.723        86.016        .21505E-06    .13549E-04
   7  Prefactor     9.9453        32.481        .19260E-06    .95506E-05
   8  Prefactor     .10000E-03    21.980        .33913E-07** at limit **
   9  Prefactor     8.1470        9.2456        .29497E-06    .20626E-04
  10  Prefactor     6.6636        6.9761        .16399E-07    .58999E-05
  11  Prefactor     1.0186        1.7348        .16207E-06    .27920E-03
  12  norm          10.138        10.134        .61961E-07    .51079E-05
  13  Prefactor     .10000E-03    3.0018       -.76555E-06** at limit **
  14  Prefactor     .10000E-03    13.198       -.14820E-08** at limit **
  15  Prefactor     5.8725        5.7202        .20838E-06   -.86431E-04
  16  norm          224.69        33.072       -.37997E-07   -.42390E-04
  17  Prefactor     .10000E-03    29.486       -.35578E-07** at limit **
  18  Prefactor     20.088        29.369       -.44897E-06   -.59388E-04
  19  Prefactor     .10000E-03    7.3022        .33739E-05** at limit **
  20  Prefactor     .10000E-03    1.6867       -.56321E-08** at limit **
  21  Prefactor     1.2730        1.5132        .21234E-07    .11270E-04
  22  Prefactor     .10000E-03    7.4175       -.48363E-07** at limit **
  23  Normalizat    .86642        .19083        .69366E-07    .60657E-04
  24  Prefactor     1.1744        .19546       -.22403E-06    .71683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100116
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.52975
  Prefactor  = 0.000100001
  Prefactor  = 76.7225
  Prefactor  = 9.94534
  Prefactor  = 0.0001
  Prefactor  = 8.14701
  Prefactor  = 6.66358
  Prefactor  = 1.01856
  norm       = 10.138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.87248
  norm       = 224.694
  Prefactor  = 0.0001
  Prefactor  = 20.0882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.27296
  Prefactor  = 0.0001
  Normalizat = 0.866425
  Prefactor  = 1.17443
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.328     FROM HESSE     STATUS=OK           397 CALLS     3109 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    31.114        .26554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1855        .16511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    93.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5298        5.7735        .12980E-03   -1.5090    
   5  Prefactor     .10000E-03    83.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     76.723        86.028        .45846E-04   -1.3954    
   7  Prefactor     9.9453        32.479        .12709E-03   -1.5077    
   8  Prefactor     .10000E-03    21.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1470        9.1888        .14044E-03   -1.5137    
  10  Prefactor     6.6636        6.9750        .15545E-03   -1.5192    
  11  Prefactor     1.0186        1.4175        .13069E-02   -1.5506    
  12  norm          10.138        10.119        .12586E-03   -1.5071    
  13  Prefactor     .10000E-03    3.0553        .26558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8725        5.7082        .16572E-03   -1.5223    
  16  norm          224.69        33.089        .26990E-04   -1.2699    
  17  Prefactor     .10000E-03    29.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.088        29.437        .89448E-04   -1.4811    
  19  Prefactor     .10000E-03    7.3077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6884        .99964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2730        1.4988        .10261E-03   -1.5482    
  22  Prefactor     .10000E-03    7.4190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86642        .22252        .28000E-03   -.97650    
  24  Prefactor     1.1744        .23032        .26329E-03   -.87122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67592e-09
Minuit parameter uncertainties:
  1  0.00379977
  2  4.9948e-07
  3  0.00061699
  4  5.77387
  5  0.000548396
  6  86.1677
  7  32.5371
  8  6.01169e-06
  9  9.19043
  10  6.97586
  11  1.41752
  12  10.1208
  13  1.25101e-05
  14  2.55915e-06
  15  5.70872
  16  33.0916
  17  1.60557e-05
  18  29.458
  19  6.13932e-05
  20  5.24274e-08
  21  1.49884
  22  1.20578e-05
  23  0.222755
  24  0.230516
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.019e+00  1.418e+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:  1.174e+00  2.305e-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.664e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 5.41e-06 +/- 7.53e-06

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

Saving results to:
/scratch/kocevski/659575/likelihoodResults_481939201_482198401_4FGL_J1001.1+2911_daily_bin936.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) = 6212.17561492
delta logL = 0.152781063734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6212.17299509
delta logL = 0.155400901923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0883       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7243       1.0000          .0000       10.000    
     3 'Normalizat'    .87436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1694       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=   6212.173     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0892        2.3619        .11481E-01    .12176E-04
   2  Index         1.7242        1.0884        .27665       -.36341E-04
   3  Normalizat    .87435        .18029        .44573E-01    .15488E-04
   4  Prefactor     1.1692        .19434        .59639E-01    .42019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0892
  Index      = 1.72424
  Normalizat = 0.874347
  Prefactor  = 1.16924
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.173     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0892        1.4680        .10741E-03   -1.5499    
   2  Index         1.7242        .85926        .13808E-01   -.71438    
   3  Normalizat    .87435        .21091        .27881E-03   -.97367    
   4  Prefactor     1.1692        .22813        .26374E-03   -.87283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12763e-09
Minuit parameter uncertainties:
  1  1.46805
  2  0.866853
  3  0.211105
  4  0.228327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659575': 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) = 6212.17299312
delta logL = 0.155402866778

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.089e+00  1.468e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.724e+00  8.669e-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:  1.169e+00  2.283e-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.743e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.72 +/- 0.87
Photon Flux (Free Index): 7.38e-09 +/- 1.28e-08
Energy Flux (Free Index): 1.12e-05 +/- 2.31e-05

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/659575/cmap_HighResolution_481939201_482198401_4FGL_J1001.1+2911_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='1.12e-05', photon_flux_error='1.89e-08', dlogl='1.55e-01', energy_flux='5.41e-06', photon_flux2='7.38e-09', job_status='DONE', time_completed='2021-09-01 10:14:26.959326', photon_index_error2='0.87', photon_index2='1.72', ts='1.02', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='7.45e-08', energy_flux_error2='2.31e-05', EG='0.87', time_epoch_completed='1630516466.96', return_code='0', job_id='659575', GAL2='1.17', EG2='0.87', return_code2='0', energy_flux_error='7.53e-06', photon_flux_error2='1.28e-08', ts2='1.33', photon_index='2.27' WHERE bin_id='936' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:14:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 659575: <4FGL_J1001.1+2911_daily_bin936> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin936 150.294 29.188 481939201 482198401 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 :                                   660.00 sec.
    Max Memory :                                 1003 MB
    Average Memory :                             293.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

