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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin698
RA = 150.294, Dec = 29.188
tmin = 420249601, tmax = 420508801
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='657766', job_status='RUN', time_executed='2021-09-01 09:55:43.284606', time_epoch_executed='1630515343.28' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657766/ft1_4FGL_J1001.1+2911_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657766/ft2_4FGL_J1001.1+2911_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657766/ft1_4FGL_J1001.1+2911_daily_bin698.fits outfile=/scratch/kocevski/657766/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin698.fits ra=150.294 dec=29.188 rad=12.0 tmin=420249601.0 tmax=420508801.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.36
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657766/ft1_filtered_4FGL_J1001.1+2911_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/657766/ft2_4FGL_J1001.1+2911_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/657766/ltcube_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.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/657766/ft2_4FGL_J1001.1+2911_daily_bin698.fits
.....................!
real 11.85
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657766/ft1_filtered_4FGL_J1001.1+2911_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/657766/ft2_4FGL_J1001.1+2911_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/657766/ltcube_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.fits outfile=/scratch/kocevski/657766/expmap_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.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/657766/ltcube_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.fits
.....................!
real 189.06
user 184.25
sys 4.32

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/657766/ft1_filtered_4FGL_J1001.1+2911_daily_bin698.fits scfile=/scratch/kocevski/657766/ft2_4FGL_J1001.1+2911_daily_bin698.fits outfile=/scratch/kocevski/657766/cmap_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657766/ft1_filtered_4FGL_J1001.1+2911_daily_bin698.fits scfile=/scratch/kocevski/657766/ft2_4FGL_J1001.1+2911_daily_bin698.fits outfile=/scratch/kocevski/657766/cmap_HighResolution_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .44604       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.600       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40714E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2027       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12803E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4114       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .78342       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4489       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90927       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5263.920     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2833 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8695         .0000    ** at limit **
   2  norm          .44568        1.2134         .0000        .82940E-03
   3  Prefactor     34.595        46.086         .0000        .10107E-02
   4  Prefactor     .10000E-03    1.6698         .0000    ** at limit **
   5  Prefactor     .10000E-03    9.8735         .0000    ** at limit **
   6  Prefactor     .10000E-03    15.248         .0000    ** at limit **
   7  Prefactor     26.140        31.568         .0000        .19995E-03
   8  Prefactor     .10000E-03    40.262         .0000    ** at limit **
   9  Prefactor     .10000E-03    4.1364         .0000    ** at limit **
  10  Prefactor     11.576        11.884         .0000        .51465E-03
  11  Prefactor     1.2028        1.5999         .0000        .46114E-03
  12  norm          .10000E-03    1.6097         .0000    ** at limit **
  13  Prefactor     .10000E-03    1.6649         .0000    ** at limit **
  14  Prefactor     .10000E-03    70.558         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.4885         .0000    ** at limit **
  16  norm          13.143        9.7896         .0000       -.87810E-04
  17  Prefactor     .10000E-03    169.85         .0000    ** at limit **
  18  Prefactor     21.911        21.199         .0000       -.35039E-04
  19  Prefactor     .10000E-03    1.9132         .0000    ** at limit **
  20  Prefactor     1.4125        15.125         .0000        .15573E-01
  21  Prefactor     .78360        2.9590         .0000        .85005E-03
  22  Prefactor     6.4425        32.293         .0000        .24506E-04
  23  Normalizat    1.0919        .17210         .0000        .15798E-04
  24  Prefactor     .90932        .18594         .0000       -.44104E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.445676
  Prefactor  = 34.5951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5759
  Prefactor  = 1.20279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1425
  Prefactor  = 0.000100001
  Prefactor  = 21.9113
  Prefactor  = 0.0001
  Prefactor  = 1.41253
  Prefactor  = 0.783603
  Prefactor  = 6.44248
  Normalizat = 1.09193
  Prefactor  = 0.909322
 **********
 **   18 **HESSE 
 **********

 FCN=   5263.920     FROM HESSE     STATUS=OK           399 CALLS     3232 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3640        .23863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .44568        1.0281        .12693E-02   -1.5574    
   3  Prefactor     34.595        46.073        .68127E-04   -1.4531    
   4  Prefactor     .10000E-03    11.114        .17895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.140        31.565        .78347E-04   -1.4685    
   8  Prefactor     .10000E-03    40.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2611        .28802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.576        11.886        .11775E-03   -1.5027    
  11  Prefactor     1.2028        1.5684        .10191E-03   -1.5489    
  12  norm          .10000E-03    1.6114        .89895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6941        .91336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    71.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5073        .86408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.143        9.7857        .11049E-03   -1.4983    
  17  Prefactor     .10000E-03    172.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.911        21.172        .85567E-04   -1.4771    
  19  Prefactor     .10000E-03    1.9301        .97862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4125        12.991        .18231E-02   -1.5470    
  21  Prefactor     .78360        3.5398        .18797E-02   -1.5531    
  22  Prefactor     6.4425        32.231        .15804E-03   -1.5200    
  23  Normalizat    1.0919        .19665        .21073E-03   -.90011    
  24  Prefactor     .90932        .21460        .25829E-03   -.95816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32302e-09
Minuit parameter uncertainties:
  1  1.99742e-05
  2  1.0281
  3  46.1209
  4  7.90612e-06
  5  7.5551e-05
  6  4.0841e-05
  7  31.5855
  8  0.000204264
  9  7.71009e-06
  10  11.8884
  11  1.5685
  12  9.00569e-06
  13  1.10608e-05
  14  0.000223756
  15  3.96879e-07
  16  9.78684
  17  0.000922371
  18  21.1796
  19  9.28883e-06
  20  8.56961
  21  3.33106
  22  28.8443
  23  0.196783
  24  0.214804
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.203e+00  1.568e+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.093e-01  2.148e-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.092e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 6.39e-06 +/- 8.34e-06

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

Saving results to:
/scratch/kocevski/657766/likelihoodResults_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.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) = 5263.91670419
delta logL = 0.00323677985671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5263.91638293
delta logL = 0.00355803838556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2229       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1406       1.0000          .0000       10.000    
     3 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90715       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=   5263.916     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      194 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2225        53.853        .10189E-01    .17932E-04
   2  Index         2.1400        5.4587        .25038       -.19321E-05
   3  Normalizat    1.0954        .66685E-01    .38194E-01    .70621E-05
   4  Prefactor     .90712        .56161E-01    .45096E-01    .13094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22247
  Index      = 2.14001
  Normalizat = 1.09537
  Prefactor  = 0.907115
 **********
 **   18 **HESSE 
 **********

 FCN=   5263.916     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2225        1.6267        .10481E-03   -1.5487    
   2  Index         2.1400        1.4485        .15164E-01   -.60894    
   3  Normalizat    1.0954        .19192        .21044E-03   -.89901    
   4  Prefactor     .90712        .21423        .25856E-03   -.95893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40357e-11
Minuit parameter uncertainties:
  1  1.6268
  2  1.48043
  3  0.192042
  4  0.214427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657766': 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) = 5263.91638278
delta logL = 0.00355818897697

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.222e+00  1.627e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.140e+00  1.480e+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:  9.071e-01  2.144e-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.095e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.14 +/- 1.48
Photon Flux (Free Index): 1.36e-08 +/- 3.18e-08
Energy Flux (Free Index): 6.85e-06 +/- 1.17e-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/657766/cmap_HighResolution_420249601_420508801_4FGL_J1001.1+2911_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='6.85e-06', photon_flux_error='2.09e-08', dlogl='3.56e-03', energy_flux='6.39e-06', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-09-01 10:06:03.897122', photon_index_error2='1.48', photon_index2='2.14', ts='1.08', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='1.17e-05', EG='1.09', time_epoch_completed='1630515963.9', return_code='0', job_id='657766', GAL2='0.91', EG2='1.10', return_code2='0', energy_flux_error='8.34e-06', photon_flux_error2='3.18e-08', ts2='1.08', photon_index='2.27' WHERE bin_id='698' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 657766: <4FGL_J1001.1+2911_daily_bin698> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin698> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:31 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:55:33 2021
Terminated at Wed Sep  1 10:06:04 2021
Results reported at Wed Sep  1 10:06:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin698 150.294 29.188 420249601 420508801 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 :                                   618.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

